Skip to main content

filter_map

Function filter_map 

Source
pub fn filter_map<T, U>(arr: &[T], f: impl Fn(&T) -> Option<U>) -> Vec<U>