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 revisionPrevious revision
Last revisionBoth sides next revision
cs_lang:ackermann [2012/09/30 11:54] cedriccs_lang:ackermann [2012/09/30 12:09] 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: 2020/07/10 09:48 by cedric