1 unstable release
0.1.0 | Aug 7, 2020 |
---|
#2668 in Algorithms
58 downloads per month
Used in boolean_function
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
.