Get all permutations of an collection
an collection with all the permutations
permutations(["a", "b", "c"])) // =>[ ["a", "b", "c"], ["b", "a", "c"], ["b", "c", "a"], ["a", "c", "b"], ["c", "a", "b"], ["c", "b", "a"]] Copy
permutations(["a", "b", "c"])) // =>[ ["a", "b", "c"], ["b", "a", "c"], ["b", "c", "a"], ["a", "c", "b"], ["c", "a", "b"], ["c", "b", "a"]]
Get all permutations of an collection