User Tools

Site Tools


cs_lang:ocaml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cs_lang:ocaml [2011/07/14 09:02] – [Parity] cedriccs_lang:ocaml [2011/07/14 09:03] – [Increment a number] cedric
Line 13: Line 13:
 # inc 2;; # inc 2;;
 - : int = 3 - : int = 3
 +
 +
 +# Alternative:
 +# let inc = (+) 1;;
 +val inc : int -> int = <fun>
 </code> </code>
  
cs_lang/ocaml.txt · Last modified: 2012/04/29 11:44 by cedric