JSL Help: How to create all permutations of a vector or a list
I am trying to figure out the best way to write some JSL to enumerate all the permutations of a vector or list. One algorithm I've found, that looks promising, is Heap's Algorithm https://en.wikipedia.org/wiki/Heap%27s_algorithm , but I just can't seem to figure out how to code this up. Can someone help me out here? I realize that the larger the size of a vector or list, the size of the outpu...