Collections Ruby

require 'set'
p Set.new(1..5)              # => #
p Set.new([1,2,3])           # => #
p Set.new([1,2,3]) {|x| x+1} # => #