Function mz_ore::permutations::invert
source ยท pub fn invert<I>(permutation: I) -> impl Iterator<Item = (usize, usize)>where
I: IntoIterator<Item = usize>,
Expand description
Given a permutation, construct its inverse.
pub fn invert<I>(permutation: I) -> impl Iterator<Item = (usize, usize)>where
I: IntoIterator<Item = usize>,
Given a permutation, construct its inverse.