User Tools

Site Tools


cs_lang:ackermann

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
cs_lang:ackermann [2012/09/30 11:54]
cedric
cs_lang:ackermann [2012/09/30 12:09] (current)
cedric
Line 5: Line 5:
 </​code>​ </​code>​
  
-====== Objective Caml ======+====== Different implementations ====== 
 +===== Objective Caml =====
 <code ocaml> <code ocaml>
 let rec ackermann x y = match (x,y) with let rec ackermann x y = match (x,y) with
Line 14: Line 15:
  
  
-====== Haskell ​======+===== Haskell =====
 <code haskell> <code haskell>
 ackermann :: Integer -> Integer -> Integer ackermann :: Integer -> Integer -> Integer
Line 23: Line 24:
  
  
-====== Python ​======+===== Python =====
 <code python> <code python>
 def ackermann(m,​ n): def ackermann(m,​ n):
cs_lang/ackermann.txt · Last modified: 2012/09/30 12:09 by cedric