Function lift

  • Adapt a synchronous function to be applied in the context of Ior.

    Type Parameters

    • TArgs extends unknown[]

    • T

    Parameters

    • f: ((...args) => T)
        • (...args): T
        • Parameters

          • Rest ...args: TArgs

          Returns T

    Returns (<A>(...iors) => Ior<A, T>)

      • <A>(...iors): Ior<A, T>
      • Type Parameters

        Parameters

        • Rest ...iors: {
              [K in keyof TArgs]: Ior<A, TArgs[K]>
          }

        Returns Ior<A, T>

Generated using TypeDoc