mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
Remove the signature explanation by grouping to avoid confusion
with signature syntax for function types.
This commit is contained in:
parent
2d01fb3c05
commit
166fb997a0
@ -51,8 +51,7 @@ written in curried form. A function that takes multiple arguments can be
|
||||
represented as a composition of functions that take only one argument.
|
||||
The "f(x,y) = x + y" function from the example above applied to
|
||||
arguments 2 and 3 is equivalent to the "f0(y) = 2 + y" function applied to 3.
|
||||
Hence the "int -> int -> int" signature, which can be read as
|
||||
"(int -> int) -> int".
|
||||
Hence the "int -> int -> int" signature.
|
||||
|
||||
|
||||
```ocaml
|
||||
|
Loading…
Reference in New Issue
Block a user