Sha256: 5e486f0d9aff9a50d5ea6de4024e24cb8a42f8dde204c8c0753a2ba9437d70cf
Contents?: true
Size: 173 Bytes
Versions: 30
Compression:
Stored size: 173 Bytes
Contents
class Set def &(enum) n = self.class.new enum.each { |o| n.add(o) if include?(o) } n end alias intersection & end unless Set.method_defined? :intersection
Version data entries
30 entries across 30 versions & 2 rubygems