diff options
author | Valentin Gagarin <valentin.gagarin@tweag.io> | 2022-08-12 14:13:15 +0200 |
---|---|---|
committer | Valentin Gagarin <valentin.gagarin@tweag.io> | 2022-08-15 10:18:56 +0200 |
commit | 0378531bf2cdb19ab4601c6dbc04c3f2cd962caa (patch) | |
tree | 30589cbc026a2c6b3499ad3063e362f76a5956f2 /doc | |
parent | 2e4704ca9372c90826022d52360b6d57b564de5b (diff) |
add curried function
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/src/language/index.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual/src/language/index.md b/doc/manual/src/language/index.md index f201bbded..72e09b25d 100644 --- a/doc/manual/src/language/index.md +++ b/doc/manual/src/language/index.md @@ -298,6 +298,14 @@ the rest. </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` </td> <td> |