Function malachite_base::tuples::exhaustive::exhaustive_pairs

source ·
pub fn exhaustive_pairs<X: Clone, I: Iterator<Item = X>, Y: Clone, J: Iterator<Item = Y>>(
    xs: I,
    ys: J
) -> ExhaustivePairs<X, I, Y, J> 
Expand description

This documentation applies not only to exhaustive_pairs, but also to exhaustive_triples, exhaustive_quadruples, and so on. See exhaustive_tuples for more information.

Generates all $n$-tuples with elements from $n$ iterators.

If all of xs, ys, zs, … are finite, the output length is the product of their lengths. If any of xs, ys, zs, … are infinite, the output is also infinite.

If any of xs, ys, zs, … is empty, the output is also empty.

§Examples

See here.