add curried function

This commit is contained in:
Valentin Gagarin 2022-08-12 14:13:15 +02:00
parent 2e4704ca93
commit 0378531bf2

View file

@ -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`