Function ai_kit::utils::map_while_some [] [src]

pub fn map_while_some<A, E>(
    iter: &mut Iterator<Item = E>,
    f: &Fn(E) -> Option<A>
) -> Option<Vec<A>>

Map across the iterator, terminating early if a mapping returns None