pub fn permutations_generic<'a, T: Copy + Debug>(
s1: &'a [T],
s2: &'a [T],
pairs: usize,
) -> PermutationIter<'a, T> ⓘ
Available on crate feature
regression
only.Expand description
The returned iterator is a bit funky.
It returns a buffer, which at all costs should be reused.
This could either be done using a while loop
(e.g. while let Some(buf) = iter.next() { iter.give_buffer(buf) }
)
or any of the built-in methods.
If you know the length at compile time, use PermutationIter::collect_len
.