apply()
apply<
T
,R
>(f
): (x
) =>R
Takes an unary function and applies it to the given argument.
Type Parameters
• T
• R
Parameters
f
(x
) => R
The function to apply to the value.
Returns
Function
Parameters
x
T
Returns
R
Remark
A combinator
Remark
apply :: (a → b) → a → b
Remark
λab.ab
Remark
pure function
Example
apply((a) => a + 6)(3);
// 9