Function traverseInto

  • Map the elements in an iterable to Maybe and collect the Just values into a Builder.

    Type Parameters

    • T

    • T1

    • TFinish

    Parameters

    • elems: Iterable<T>
    • f: ((elem, idx) => Maybe<T1>)
        • (elem, idx): Maybe<T1>
        • Parameters

          • elem: T
          • idx: number

          Returns Maybe<T1>

    • builder: Builder<T1, TFinish>

    Returns Maybe<TFinish>

    Remarks

    If any Maybe is Nothing, the state of the provided Builder is undefined.

Generated using TypeDoc