itertools::permutations

Function advance

Source
fn advance(indices: &mut [usize], cycles: &mut [usize]) -> bool