Each loop
require 'set' s = Set[1, 2, 3, 4, 5] # => #<Set: {5, 1, 2, 3, 4}> s.each {|x| print x } # prints "51234": arbitrary order before Ruby 1.9