Created
May 18, 2022 09:39
-
-
Save denisdefreyne/0357b0f0deef94a38a3165fa887fc701 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require "set" | |
points = Set.new | |
points << Point.new(11, 24) | |
points.include?(Point.new(11, 24)) # => true | |
points.include?(Point.new(10, 22)) # => false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment