polars_utils::vec

Function inplace_zip_filtermap

Source
pub fn inplace_zip_filtermap<T, U>(
    x: &mut Vec<T>,
    y: &mut Vec<U>,
    f: impl FnMut(T, U) -> Option<(T, U)>,
)
Expand description

Perform an in-place Iterator::filter_map over two vectors at the same time.