fn process<T, F>(items: Vec<T>, f: F) -> Vec<T>
where
    F: Fn(&T) -> bool,
{
    items.into_iter()
        .filter(|x| f(x))
        .collect()
}
