Function ai_kit::utils::fold_while_some [] [src]

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