Created
April 29, 2020 07:14
-
-
Save jonathanagustin/c370b76b396a97e8cf9350656f4044d6 to your computer and use it in GitHub Desktop.
Python parallel sorting of lists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parallel sorting of lists | |
data = zip(list1, list2) | |
data.sort() | |
list1, list2 = map(lambda t: list(t), zip(*data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment