disjoint?

check if given sets are disjoint (they have no common elements)


Parameters

disjoint? setA :block
          setB :block

Returns

  • :logical

Examples

copy
disjoint? [1 2 3 4] [3 4 5 6] ; => false disjoint? [1 2 3 4] [5 6 7 8] ; => true

Related