Function traverseInto

  • Map the elements in an iterable to Ior and collect the right-hand values into a Builder.

    Type Parameters

    Parameters

    • elems: Iterable<T>
    • f: ((elem, idx) => Ior<A, B>)
        • (elem, idx): Ior<A, B>
        • Parameters

          • elem: T
          • idx: number

          Returns Ior<A, B>

    • builder: Builder<B, TFinish>

    Returns Ior<A, TFinish>

    Remarks

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

Generated using TypeDoc