setCartesian
Cartesian product — all ordered pairs
Syntax
setCartesian(a, b)
TypesArray
setDifference
Elements of a not in b (multiset difference)
Syntax
setDifference(a, b)
TypesArray
setDisjoint
True when a and b share no elements
TypesArray
setDistinct
Distinct elements (remove duplicates)
TypesArray
setEqual
True when a and b are equal as multisets
TypesArray
setIntersect
Intersection of two multisets
Syntax
setIntersect(a, b)
TypesArray
setIsSubset
True when every element of a (with multiplicity) appears in b
TypesArray
setIsSuperset
True when every element of b (with multiplicity) appears in a
Syntax
setIsSuperset(a, b)
TypesArray
setMultiplicity
Count occurrences of element e in multiset a
Syntax
setMultiplicity(e, a)
TypesArray
setPowerset
All subsets ordered by size
TypesArray
setSize
Element count; pass true for distinct count
Syntax
setSize(a[, unique])
TypesArray
setSymDifference
Symmetric difference of two multisets
Syntax
setSymDifference(a, b)
TypesArray
setUnion
Union of two multisets
TypesArray