Skip to main content

pairwise

Function pairwise 

Source
pub fn pairwise<T: Copy>(items: &[T], reverse: bool) -> Vec<(T, T)>
Expand description

pairwise: each item with the next one, the last with the first; in reverse order if reverse.