= private = protected
&(enum)
Returns a new set containing elements common to the set and the given enumerable object.
# File lib/set.rb, line 312 def &(enum) n = self.class.new enum.each { |o| n.add(o) if include?(o) } n end