Skip to content

Commit

Permalink
Merge pull request #28 from shazeline/remove-map-note
Browse files Browse the repository at this point in the history
Remove incorrect note about map.
  • Loading branch information
yasoob committed Aug 18, 2015
2 parents 4d5c2e0 + fefca54 commit 86bf3c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lambdas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ they are used in the wild:
a.sort(key=lambda x: x[1])
print(a)
# Output: [(13, -3), (4, 1), (1, 2), (9, 10)]
# Output: [(13, -3), (4, 1), (1, 2), (9, 10)]
**Parallel sorting of lists**

Expand All @@ -41,5 +41,3 @@ they are used in the wild:
data = zip(list1, list2)
data.sort()
list1, list2 = map(lambda t: list(t), zip(*data))
Note: We will learn about map in a later chapter so don't worry!

0 comments on commit 86bf3c6

Please sign in to comment.