hasgo
hasgo copied to clipboard
Permutations()
The permutations function returns the list of all permutations of the argument.
[a] -> [[a]]
permutations "abc"
["abc","bac","cba","bca","cab","acb"]