How can I get the intersection, union, and subset of arrays in Ruby? How can I get the intersection, union, and subset of arrays in Ruby? ruby ruby