For permutation, it's already available in [algorithm](https://nim-lang.org/docs/algorithm.html#nextPermutation,openArray\[T\]) lib.
It just simply do permutation on entire seq/array in place though.
For permutation, it's already available in [algorithm](https://nim-lang.org/docs/algorithm.html#nextPermutation,openArray\[T\]) lib.
It just simply do permutation on entire seq/array in place though.