add curried function
This commit is contained in:
@@ -296,6 +296,14 @@ the rest.
|
||||
A function that expects an integer and returns it increased by 1
|
||||
</td>
|
||||
</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>
|
||||
<td>
|
||||
`(x: x + 1) 100`
|
||||
|
||||
Reference in New Issue
Block a user