macpie.lltools.is_disjoint#
- macpie.lltools.is_disjoint(a, b)#
Check if two lists are disjoint (i.e. have no element in common).
>>> l1 = [1, 2, 6, 8] >>> l2 = [2, 3, 5, 8] >>> is_disjoint(l1, l2) False
- Parameters:
a – list
b – list
Site Navigation
Section Navigation
Check if two lists are disjoint (i.e. have no element in common).
>>> l1 = [1, 2, 6, 8]
>>> l2 = [2, 3, 5, 8]
>>> is_disjoint(l1, l2)
False
a – list
b – list