Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created May 18, 2022 09:39
Show Gist options
  • Save denisdefreyne/0357b0f0deef94a38a3165fa887fc701 to your computer and use it in GitHub Desktop.
Save denisdefreyne/0357b0f0deef94a38a3165fa887fc701 to your computer and use it in GitHub Desktop.
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