forked from lix-project/lix
add curried function
This commit is contained in:
parent
2e4704ca93
commit
0378531bf2
|
@ -296,6 +296,14 @@ the rest.
|
||||||
A function that expects an integer and returns it increased by 1
|
A function that expects an integer and returns it increased by 1
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
`x: y: x + y`
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
Curried function, equivalent to `x: (y: x + y)`. Can be used like a function that takes two arguments and returns their sum.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
`(x: x + 1) 100`
|
`(x: x + 1) 100`
|
||||||
|
|
Loading…
Reference in a new issue