Skip to main content

keep_where

Function keep_where 

Source
pub fn keep_where<A: Clone, B: Copy + PartialEq>(
    items: &[A],
    read: fn(&A) -> B,
    wanted: B,
) -> Vec<A>