fixing doc or fonction (partial application)

This commit is contained in:
Pierre-Emmanuel Wulfman 2020-03-02 18:20:15 +01:00
parent 89f2b44e7d
commit 32d3bb5a0f

View File

@ -133,7 +133,7 @@ returns an integer as well:
```cameligo group=b ```cameligo group=b
let add (a, b : int * int) : int = a + b // Uncurried let add (a, b : int * int) : int = a + b // Uncurried
let add_curry (a : int) (b : int) : int = add (a, b) // Curried let add_curry (a : int) (b : int) : int = add (a, b) // Curried
let increment (b : int) : int = add_curry 1 b // Partial application let increment : int -> int = add_curry 1 // Partial application
``` ```
You can run the `increment` function defined above using the LIGO You can run the `increment` function defined above using the LIGO