Add anonymous function example for CameLIGO

This commit is contained in:
John David Pressman 2019-11-21 05:41:22 -08:00
parent ae7c92844c
commit ff4c580133

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);
```
<!--Cameligo-->
```cameligo
let increment : (int -> int) = fun (i: int) -> i + 1
```
<!--END_DOCUSAURUS_CODE_TABS-->