Preparing search index...
The search index is not available
@nathanpb/kext
@nathanpb/kext
Curry
curry4
Function curry4
curry4
<
F
,
R
>
(
func
:
F
)
:
(
(
...
d
:
FourthParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
c
:
ThirdParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
b
:
SecondParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
)
)
)
Curry a function with four parameters
Type Parameters
F
extends
(
(
a
:
any
, b
:
any
, c
:
any
, d
:
any
)
=>
any
)
R =
ReturnType
<
F
>
Parameters
func:
F
Function to be curried
Returns
(
(
...
d
:
FourthParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
c
:
ThirdParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
b
:
SecondParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
)
)
)
(
...
d
:
FourthParam4
<
Parameters
<
F
>
>
)
:
(
(
...
c
:
ThirdParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
b
:
SecondParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
)
)
Parameters
Rest
...
d:
FourthParam4
<
Parameters
<
F
>
>
Returns
(
(
...
c
:
ThirdParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
b
:
SecondParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
)
)
(
...
c
:
ThirdParam4
<
Parameters
<
F
>
>
)
:
(
(
...
b
:
SecondParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
)
Parameters
Rest
...
c:
ThirdParam4
<
Parameters
<
F
>
>
Returns
(
(
...
b
:
SecondParam4
<
Parameters
<
F
>
>
)
=>
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
)
(
...
b
:
SecondParam4
<
Parameters
<
F
>
>
)
:
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
Parameters
Rest
...
b:
SecondParam4
<
Parameters
<
F
>
>
Returns
(
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
=>
R
)
(
...
a
:
FirstParam4
<
Parameters
<
F
>
>
)
:
R
Parameters
Rest
...
a:
FirstParam4
<
Parameters
<
F
>
>
Returns
R
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@nathanpb/kext
Array
Chainer
Curry
Enum
Error
Math
Object
Random
Scope
First
Param2
First
Param3
First
Param4
Fourth
Param4
Second
Param2
Second
Param3
Second
Param4
Third
Param3
Third
Param4
curry2
curry3
curry4
flip2
flip3
flip4
flip
Fourth4
flip
Second2
flip
Second3
flip
Second4
flip
Third3
flip
Third4
Generated using
TypeDoc
Curry a function with four parameters