Loading

DIFFERENCE


sets
Since v1.0.0
Available on all platforms
See also

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).

Signature

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->