Function traverse

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

    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>

    Returns Ior<A, B[]>

Generated using TypeDoc