calcIntersection

Implementation of the intersection operation for arrays.

T
calcIntersection
(
T
)
(
const T[] arrays...
)

Examples

int[] arr = calcIntersection([3, 4, 1, -15], [9, 3, 1], [1, 99, 3]);
assert(arr == [1, 3]);

Meta