Method: Gecode::Set::SetOperand#intersection
- Defined in:
- lib/gecoder/interface/constraints/set/operation.rb
#intersection(set_operand_or_constant_set) ⇒ Object
Produces a new SetOperand representing the intersection between this operand and set_operand_or_constant_set.
Examples
# The intersection between +set1+ and +set2+.
set1.intersection set2
# The intersection between +set+ and {1, 3, 5}.
set.intersection [1,3,5]
42 43 44 |
# File 'lib/gecoder/interface/constraints/set/operation.rb', line 42 def intersection(set_operand_or_constant_set) set_operation(:intersection, set_operand_or_constant_set) end |