User Tools

Site Tools


cs_lang:haskell

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
cs_lang:haskell [2012/04/29 22:09] cedriccs_lang:haskell [2012/04/30 16:51] (current) – [Caeser cipher] cedric
Line 17: Line 17:
 ====== Simple examples ====== ====== Simple examples ======
  
-You can compare these functions with the [[cs_lang:ocaml#simple_examples | Objective Caml]] version.+You can compare functions below with the [[cs_lang:ocaml#simple_examples | Objective Caml]] version.
  
 ===== Increment a number ===== ===== Increment a number =====
 <code haskell> <code haskell>
-let inc = (+) n 1+let inc = (+) n
  
 -- Alternative: -- Alternative:
Line 28: Line 28:
  
  
-===== Caeser cipher =====+===== Caesar cipher =====
  
 <code haskell> <code haskell>
cs_lang/haskell.1335730149.txt.gz · Last modified: 2012/04/29 22:09 by cedric