Created
August 8, 2015 16:03
-
-
Save Mon-Ouie/a4e4a383ced809929f85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pry(main):12> ab = 1 | |
=> 1 | |
pry(main):13> c = 2 | |
=> 2 | |
pry(main):14> abc = Set.new [ab, c] | |
=> #<Set: {1, 2}> | |
pry(main):15> abc > c | |
ArgumentError: value must be a set | |
from /usr/lib/ruby/2.2.0/set.rb:226:in `proper_superset?' | |
pry(main):16> abc > Set.new([c]) | |
=> true | |
pry(main):17> abc - c | |
ArgumentError: value must be enumerable | |
from /usr/lib/ruby/2.2.0/set.rb:98:in `do_with_enum' | |
pry(main):18> abc - Set.new([c]) | |
=> #<Set: {1}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment