Loading

INTERSECTION

sets

Computes the intersection ∩ of two sets.

The INTERSECTION function consumes two sets from the top of the stack and pushes back its mathematical intersection (ie: the elements in common).

INTERSECTION is available since version 1.0.0.

See also

Signatures

Examples

// Converts the two LISTS into SETS [ 'foo' 'bar' 'Alice' ] ->SET [ 'foo' 'bar' 'Bob' ] ->SET // Compute the intersection INTERSECTION // convert back the SET into LIST SET->