Returns an array containing all elements in the set.
Set[1, 2].to_a #=> [1, 2] Set[1, 'c', :s].to_a #=> [1, "c", :s]
342 343 344
# File 'lib/set.rb', line 342 def to_a @hash.keys end