method

disjoint?

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: Set
disjoint?(set) public

Returns true if the set and the given set have no element in common. This method is the opposite of intersect?.

Set[1, 2, 3].disjoint? Set[3, 4]   #=> false
Set[1, 2, 3].disjoint? Set[4, 5]   #=> true
Show source
Register or log in to add new notes.