Skip to content

curry2to1

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/editor/src/utils/fp.ts

Takes a 2 argument function and partially applies the first argument.

Signature

ts
function curry2to1(proc: (arg1: T, arg2: K) => R, arg1: T): (arg2: K) => R

Parameters

NameType
proc(arg1: T, arg2: K) => R
arg1T

Returns: (arg2: K) => R

Was this page helpful?

Download as PDF