Crate combinatorial

Source
Expand description

Combinatorial tools, functions, and generators.

Structs§

Combinations
An iterator which generates combinations over a set of elements.
CombinationsWithReplacement
An iterator which generates combinations over a set of elements, with replacement.

Functions§

factorial
Returns n factorial.
powerset
Returns the powerset of the elements in the given iterable.
triangle_number
Returns the nth triangle number.