Merge branch 'docs/cameligo-function-expr' into 'dev'

Add anonymous function example for CameLIGO

See merge request ligolang/ligo!209
This commit is contained in:
John David Pressman 2019-11-21 14:31:15 +00:00
commit 6ed178e721

View File

@ -93,4 +93,10 @@ const increment : (int -> int) = (function (const i : int) : int is i + 1);
// a = 2
const a: int = increment(1);
```
<!--END_DOCUSAURUS_CODE_TABS-->
<!--Cameligo-->
```cameligo
let increment : (int -> int) = fun (i: int) -> i + 1
```
<!--END_DOCUSAURUS_CODE_TABS-->