Method: MTK::Groups::PitchClassSet#intersection

Defined in:
lib/mtk/groups/pitch_class_set.rb

#intersection(other) ⇒ Object

the collection of elements present in both sets



94
95
96
# File 'lib/mtk/groups/pitch_class_set.rb', line 94

def intersection(other)
  self.class.from_a(to_a & other.to_a)
end