Add lots of things(including tests)
This commit is contained in:
3
test/difference_by/difference_by.py
Normal file
3
test/difference_by/difference_by.py
Normal file
@ -0,0 +1,3 @@
|
||||
def difference_by(a, b, fn):
|
||||
b = set(map(fn, b))
|
||||
return [item for item in a if fn(item) not in b]
|
||||
Reference in New Issue
Block a user