Commit Graph

2 Commits

Author SHA1 Message Date
def
03db4d2930 Adapt the tester for permutations
Uses the bool return value now
2015-02-02 08:06:19 +01:00
def
1ae4d535cd Add nextPermutation and prevPermutation
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
2015-02-01 18:29:01 +01:00