Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adapt the tester for permutations | def | 2015-02-02 | 1 | -11/+13 |
| | | | | Uses the bool return value now | ||||
* | Add nextPermutation and prevPermutation | def | 2015-02-01 | 1 | -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 |