Loading

INTERSECTION


sets
Since v1.0.0
Available on all platforms
See also

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

Signature

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