index
:
resp.git
llvm7
master
Resp programming language
d@drobilla.net
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
fac.tpr
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'fac.tpr')
-rw-r--r--
fac.tpr
5
1 files changed, 5 insertions, 0 deletions
diff --git a/fac.tpr b/fac.tpr
new file mode 100644
index 0000000..a696ff7
--- /dev/null
+++ b/
fac.tpr
@@ -0,0 +1,5 @@
+(def fac (fn (n)
+ (if (= 0 n) 1
+ (* n (fac (- n 1))))))
+
+(fac 5)