cs_lang:ackermann
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
cs_lang:ackermann [2012/09/30 11:54] – cedric | cs_lang:ackermann [2012/09/30 12:09] – cedric | ||
---|---|---|---|
Line 5: | Line 5: | ||
</ | </ | ||
- | ====== 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, | def ackermann(m, |
cs_lang/ackermann.txt · Last modified: 2020/07/10 09:48 by cedric