Loading

DIFFERENCE

sets

Computes the difference between two sets.

The DIFFERENCE function consumes two sets from the top of the stack and pushes back its mathematical difference (ie: the elements in A but not in B).

DIFFERENCE is available since version 1.0.0.

See also

Signatures

Examples

// Converts the two LISTS into SETS [ 'foo' 'bar' 'Alice' ] ->SET 'setA' STORE [ 'foo' 'bar' 'Bob' ] ->SET 'setB' STORE // Compute the difference, the set of elements in A but not in B. $setA $setB DIFFERENCE // convert back the SET into LIST SET->