3 lines
87 B
Python
3 lines
87 B
Python
def difference(a, b):
|
|
b = set(b)
|
|
return [item for item in a if item not in b] |