UNPKG
uinix-fp-k
Version:
latest (1.0.1)
1.0.1
1.0.0
uinix fp constant/always utility
github.com/uinix-js/uinix-fp/tree/main
uinix-js/uinix-fp
uinix-fp-k
/
index.d.ts
9 lines
(8 loc)
•
158 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * The K combinator (constant function). * *
@template
X, Y *
@param
{X} x *
@returns
{(_y: Y) => X} */
export
function
k
<
X
,
Y
>(
x: X
): (
_y: Y
) =>
X;