Skip to content

Instantly share code, notes, and snippets.

@stevez
Created May 3, 2015 03:15
Show Gist options
  • Save stevez/add3405c5a3266639a15 to your computer and use it in GitHub Desktop.
Save stevez/add3405c5a3266639a15 to your computer and use it in GitHub Desktop.
permutations
[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