Skip to content

Instantly share code, notes, and snippets.

@branan
Created October 3, 2012 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save branan/769f3a120ab641d29fae to your computer and use it in GitHub Desktop.
Save branan/769f3a120ab641d29fae to your computer and use it in GitHub Desktop.
1.8.7 :001 > require 'set'
=> true
1.8.7 :002 > Set.new(Set.new(Set.new(Set.new([22,8140])))).inspect
=> "#<Set: {22, 8140}>"
1.8.7 :003 > Set.new(Set.new(Set.new([22,8140]))).inspect
=> "#<Set: {8140, 22}>"
1.8.7 :004 > Set.new(Set.new([22,8140])).inspect
=> "#<Set: {22, 8140}>"
1.8.7 :005 > Set.new([22,8140]).inspect
=> "#<Set: {8140, 22}>"
1.8.7 :006 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment