Recursively generates all permutations of a vector. The result will be
factorial(length(vals)) long so be careful with any longer vectors (e.g. longer than 10).
a vector of elements to be permuted
A list of vectors containing all permutation of the values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.