mutuallyExclusive
lib.mutuallyExclusive
Docs pulled from | This Revision | about 1 hour ago
Test if two lists have no common element. It should be slightly more efficient than (intersectLists a b == [])
Inputs
a
-
1. Function argument
b
-
2. Function argument
Noogle detected
Implementation
The following is the current implementation of this function.
mutuallyExclusive = a: b: length a == 0 || !(any (x: elem x a) b);