Skip to main content

vec_count_where

Function vec_count_where 

Source
pub fn vec_count_where<T, F: Fn(&T) -> bool>(v: &[T], pred: F) -> usize
Expand description

Count elements matching a predicate.