Created
May 3, 2015 03:15
-
-
Save stevez/add3405c5a3266639a15 to your computer and use it in GitHub Desktop.
permutations
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
[1,2,3].permutations() | |
//[[1, 2, 3], [3, 2, 1], [2, 1, 3], [3, 1, 2], [1, 3, 2], [2, 3, 1]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment