Function lattices::test::cartesian_power
source ยท pub fn cartesian_power<T, const N: usize>(
items: &[T],
) -> impl ExactSizeIterator<Item = [&T; N]> + Clone
Expand description
Returns an iterator of N
-length arrays containing all permutations of items
(with
replacement).
I.e. the N
th cartesian power of items
. I.e. the cartesian
product of items
with itself N
times.