Module combinations_with_replacement

Source

Structs§

CombinationsWithReplacement
An iterator to iterate through all the n-length combinations in an iterator, with replacement.

Functions§

combinations_with_replacement
Create a new CombinationsWithReplacement from a clonable iterator.
remaining_for 🔒
For a given size n, return the count of remaining combinations with replacement or None if it would overflow.