langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
8
Task/Ackermann-function/OCaml/ackermann-function-3.ocaml
Normal file
8
Task/Ackermann-function/OCaml/ackermann-function-3.ocaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
let h = Hashtbl.create 4001
|
||||
|
||||
let a m n =
|
||||
try Hashtbl.find h (m, n)
|
||||
with Not_found ->
|
||||
let res = a (m, n) in
|
||||
Hashtbl.add h (m, n) res;
|
||||
(res)
|
||||
Loading…
Add table
Add a link
Reference in a new issue