fixing doc or fonction (partial application)
This commit is contained in:
parent
89f2b44e7d
commit
32d3bb5a0f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user