1 unstable release

0.1.0 Aug 7, 2020

#6 in #combinations

28 downloads per month

MIT/Apache

7KB
74 lines

A general combination generator that iterates over all possible combinations of a slice of items.

It is designed for simplicity and broad applicability over power.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

A general combination generator that iterates over all possible combinations of a slice of items.

Note that combinations are different than permutations in that this crate will not generate all possible orderings of those items.

This crate does not check for uniqueness among the items; if this is desired, it is left up to the user to ensure that the items are unique before passing them to CombinationIterator::new.

No runtime deps