require 'set's = Set.new((1..10).collect)# Divide the set into the "true" subset and the "false" subset: that# is, the "less than 5" subset and the "not less than 5" subset.p s.divide { |x| x < 5 }# => #, #}>