summary refs log tree commit diff stats
path: root/tests/stdlib/tpermutations.nim
Commit message (Collapse)AuthorAgeFilesLines
* Adapt the tester for permutationsdef2015-02-021-11/+13
| | | | Uses the bool return value now
* Add nextPermutation and prevPermutationdef2015-02-011-0/+17
Fits best into algorithm module I guess. These are the most general ways, an iterator could easily be implemented from this. Same algorithm as in Rust: http://web.mit.edu/rust-lang_v0.11/doc/src/collections/var/tmp/alexp/rust/rust-0.11.0/src/libcollections/slice.rs.html#644