Skip to content

Commit

Permalink
Closures and Decorators!
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalmastud authored Feb 23, 2020
1 parent 6b23ab2 commit 1096207
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


def person_lister(f):
def inner(people):
return map(f, sorted(people, key=lambda x: int(x[2])))
return inner

0 comments on commit 1096207

Please sign in to comment.