Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Ackermann-function/Transd/ackermann-function.transd
Normal file
12
Task/Ackermann-function/Transd/ackermann-function.transd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#lang transd
|
||||
|
||||
MainModule: {
|
||||
Ack: Lambda<Int Int Int>(λ m Int() n Int()
|
||||
(if (not m) (ret (+ n 1)))
|
||||
(if (not n) (ret (exec Ack (- m 1) 1)))
|
||||
(ret (exec Ack (- m 1) (exec Ack m (- n 1))))
|
||||
),
|
||||
_start: (λ (textout (exec Ack 3 1) "\n"
|
||||
(exec Ack 3 2) "\n"
|
||||
(exec Ack 3 3)))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue