Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/set_operations/mod.ts

🦕 Deno module which provides basic set operations
Latest
import * as setOperations from "https://deno.land/x/set_operations@v1.2.0/mod.ts";

Functions

Create a new set with elements in the setA that are not in the setB.

Create a new set with elements common to the setA and the setB.

Check if the setA has no elements in common with setB. Sets are disjoint if and only if there intersection is the empty set.

Check if every elements in setA is in the setB.

Check if every elements in setB is in the setA.

Create a new set with elements in either the setA or setB but not both.

Create a new set with elements from the setA and the setB.