Skip to main content

generate_expanded_permutation

Function generate_expanded_permutation 

Source
pub fn generate_expanded_permutation<T>(
    source: &[T],
    target: &[T],
) -> ExpandedPermResult
where T: Hash + Eq,
Expand description

generating a permutation from the source vec to the target while maintaining the position of values by marking unmatched values in the target with None instead of just removing them