readme-script

This commit is contained in:
Rohit Tanwar
2018-02-20 22:42:11 +05:30
parent 7cc78ca4c4
commit 385bf72a3e
34 changed files with 222 additions and 161 deletions

View File

@ -1,3 +1,3 @@
def difference_by(a, b, fn):
b = set(map(fn, b))
def difference_by(a, b, fn):
b = set(map(fn, b))
return [item for item in a if fn(item) not in b]