1 unstable release

0.1.0 Aug 7, 2020

#2668 in Algorithms

Download history 8/week @ 2024-08-05 6/week @ 2024-09-09 7/week @ 2024-09-16 28/week @ 2024-09-23 11/week @ 2024-09-30 25/week @ 2024-10-07 18/week @ 2024-10-14 9/week @ 2024-10-21 2/week @ 2024-10-28 26/week @ 2024-11-04 19/week @ 2024-11-11

58 downloads per month
Used in boolean_function

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