Collections Ruby

require 'set'
primes = Set[2, 3, 5, 7]
primes.include? 2        # => true
primes.member? 1         # => false