subset? ( set1 set2 -- ? )

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

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

Prev: | intersects? ( set1 set2 -- ? ) |

Next: | set= ( set1 set2 -- ? ) |

Vocabulary

sets

Inputs

Outputs

Word description

Tests if every element of set1 is contained in set2.

Notes

If set1 is empty, the result is always t.

Definition

Methods

sets

Inputs

set1 | a set |

set2 | a set |

Outputs

? | a boolean |

Word description

Tests if every element of set1 is contained in set2.

Notes

If set1 is empty, the result is always t.

Definition

Methods