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:
commit
6ed178e721
@ -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-->
|
||||
|
Loading…
Reference in New Issue
Block a user