Converts the set to an array. The order of elements is uncertain.
Set[1, 2].to_a #=> [1, 2] Set[1, 'c', :s].to_a #=> [1, "c", :s]
195 196 197
# File 'lib/set.rb', line 195 def to_a @hash.keys end