Module: SetFuMixinBinaryIntersectionOperator

Included in:
Array, Range, String
Defined in:
lib/setfu.rb

Instance Method Summary collapse

Instance Method Details

#**(item) ⇒ Object

intersection test



641
642
643
644
645
# File 'lib/setfu.rb', line 641

def **(item)  # intersection test
  a = BitSet.new(self)
  b = BitSet.new(item)
  return a ** b
end