combinations

Function combinations 

Source
pub fn combinations<T>(iterable: &[T], r: usize) -> Vec<Vec<T>>
where T: Clone,
Expand description

combinations - generate combinations of length r