intersects? ( set1 set2 -- ? )
Factor handbook » The language » Collections » Sets » Operations on sets

Prev:union ( set1 set2 -- set )
Next:subset? ( set1 set2 -- ? )


Vocabulary
sets

Inputs
set1a set
set2a set


Outputs
?a boolean


Word description
Tests if set1 and set2 have any elements in common.

Notes
If one of the sets is empty, the result is always f.

Definition

GENERIC: intersects? ( set1 set2 -- ? )


Methods