Function reduce

  • Accumulate the elements in an iterable using a reducer function that returns Ior.

    Type Parameters

    Parameters

    • elems: Iterable<T>
    • accum: ((acc, val) => Ior<A, TAcc>)
        • (acc, val): Ior<A, TAcc>
        • Parameters

          • acc: TAcc
          • val: T

          Returns Ior<A, TAcc>

    • initial: TAcc

    Returns Ior<A, TAcc>

Generated using TypeDoc