diff options
author | Adam Bard <github@adambard.com> | 2014-09-10 17:35:30 +0200 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2014-09-10 17:35:30 +0200 |
commit | 146e6a4ac13f0ff6353879e7b42dfaa2a6725011 (patch) | |
tree | 2c163346849e8b153481888da32da2c45381a9b6 /ocaml.html.markdown | |
parent | f3655d0fabf732c3b8718becf26aa2ebe85c910d (diff) |
Update ocaml.html.markdown
Diffstat (limited to 'ocaml.html.markdown')
-rw-r--r-- | ocaml.html.markdown | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ocaml.html.markdown b/ocaml.html.markdown index fd7ca36e..3dbf5a10 100644 --- a/ocaml.html.markdown +++ b/ocaml.html.markdown @@ -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. |