Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Mutual-recursion/TXR/mutual-recursion.txr
Normal file
12
Task/Mutual-recursion/TXR/mutual-recursion.txr
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(defun f (n)
|
||||
(if (>= 0 n)
|
||||
1
|
||||
(- n (m (f (- n 1))))))
|
||||
|
||||
(defun m (n)
|
||||
(if (>= 0 n)
|
||||
0
|
||||
(- n (f (m (- n 1))))))
|
||||
|
||||
(each ((n (range 0 15)))
|
||||
(format t "f(~s) = ~s; m(~s) = ~s\n" n (f n) n (m n)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue