Function malachite_base::vecs::exhaustive::lex_vecs_length_2
source · pub fn lex_vecs_length_2<T: Clone, I: Iterator<Item = T>, J: Iterator<Item = T>>(
xs: I,
ys: J,
) -> LexFixedLengthVecs2Inputs<T, I, J> ⓘ
Expand description
This documentation applies not only to lex_vecs_length_2
, but also to
lex_vecs_length_3
, lex_vecs_length_4
, and so on. See lex_vecs_fixed_length
for
more information.
Generates all length-$n$ Vec
s with elements from $n$ iterators, in lexicographic
order.
The order is lexicographic with respect to the order of the element iterators.
All of ys
, zs
, … (but not necessarily xs
) must be finite. If xs
is finite, the
output length is the product of the lengths of all the input iterators. If xs
is
infinite, the output is also infinite.
If any of xs
, ys
, zs
, … is empty, the output is also empty.
§Examples
See here.