Function traverseInto

  • Map the elements in an iterable to Either and collect the Right values into a Builder.

    Type Parameters

    • T

    • E

    • T1

    • TFinish

    Parameters

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

          • elem: T
          • idx: number

          Returns Either<E, T1>

    • builder: Builder<T1, TFinish>

    Returns Either<E, TFinish>

    Remarks

    If any Either is Left, the state of the provided Builder is undefined.

Generated using TypeDoc