macpie.lltools.difference#
- macpie.lltools.difference(a, b)#
Return list of items in
athat are not inb, likea-b, while preserving order.>>> l1 = [1, 2, 6, 8] >>> l2 = [2, 3, 5, 8] >>> l3 = diff(l1, l2) >>> l3 [1, 6]
- Parameters:
a – list
b – list