Function curryTuple

  • Transforms the given function of two arguments from "tuple curried" format to curried one.

    const addPair = ([a, b]: [number, number]) => a + b;
    opt(1) // Some(1)
    .map(
    curryTuple(addPair)(4) // same as `(a => b => a + b)(4)`
    ) // Some(5)

    Type Parameters

    • A

    • B

    • C

    Parameters

    • _: ((_) => C)
        • (_): C
        • Parameters

          • _: [A, B]

          Returns C

    Returns ((_) => ((_) => C))

      • (_): ((_) => C)
      • Parameters

        • _: A

        Returns ((_) => C)

          • (_): C
          • Parameters

            • _: B

            Returns C

Generated using TypeDoc