intersects? ( set1 set2 -- ? )

Factor handbook » The language » Collections » Sets » Operations on sets

Factor handbook » The language » Collections » Sets » Operations on sets

Prev: | union ( set1 set2 -- set ) |

Next: | subset? ( set1 set2 -- ? ) |

Vocabulary

sets

Inputs

Outputs

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

Methods

sets

Inputs

set1 | a set |

set2 | a 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

Methods