keen/col/set

Source
This is a standard module and does not need to be explicitly imported.
set[t] record (has private fields)
list-new[t] t set(values t[]) t key
to[t] t set(a t[]) t key
==[t] bool(a t set, b t set) t key
to[t] t[](a t set) t key
is-empty[t] bool(a t set) t key
size[t] nat64(a t set) t key
subscript[t] bool(a t set, value t) t key
True if the value is in the set.
is-subset-of[t] bool(a t set, b t set) t key
is-superset-of[t] bool(a t set, b t set) t key
~[t] t set(a t set, value t) t key
Adds an element to the set. If it was already in the set, returns a unmodified.
|[t] t set(a t set, b t set) t key
Union of two sets. This is a set containing all elements in either a or b.
&[t] t set(a t set, b t set) t key
Intersection of two sets. This is a set containing all elements in both a and b.
-[t] t set(a t set, b t set) t key
Set difference. This is a set containing all elements in a but not in b.
try-add[t] t set option(a t set, value t) t key
If the value is already in the set, returns an empty option. Else, adds it and returns the new set.
try-remove[t] t set option(a t set, value t) t key
some[t] bool(a t set, f bool mut(t)) t key