cs_lang:ackermann
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cs_lang:ackermann [2012/09/30 11:54] – cedric | cs_lang:ackermann [2020/07/10 09:48] (current) – cedric | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | You can clone [[https://bitbucket.org/ | + | You can clone [[https://github.com/ |
- | <code bash> | ||
- | hg clone https:// | ||
- | </ | ||
- | ====== 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 12: | ||
- | ====== Haskell | + | ===== Haskell ===== |
<code haskell> | <code haskell> | ||
ackermann :: Integer -> Integer -> Integer | ackermann :: Integer -> Integer -> Integer | ||
Line 23: | Line 21: | ||
- | ====== 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