1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-17 20:11:57 +02:00

Update ocaml.html.markdown

This commit is contained in:
Adam Bard
2014-09-10 17:35:30 +02:00
parent f3655d0fab
commit 146e6a4ac1

View File

@@ -1,5 +1,5 @@
---
language: "OCaml"
language: OCaml
contributors:
- ["Daniil Baturin", "http://baturin.org/"]
---
@@ -20,6 +20,7 @@ source of confusion for beginners.
When you are in the top level loop, OCaml will print the inferred type
after you enter an expression.
```
# let inc x = x + 1 ;;
val inc : int -> int = <fun>
@@ -42,6 +43,7 @@ val inc : int -> int
val add : int -> int -> int
val a : int
```
Note that type signatures of functions of multiple arguments are
written in curried form.