aboutsummaryrefslogtreecommitdiffstats
path: root/test/fac.resp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-04-08 20:09:16 +0000
committerDavid Robillard <d@drobilla.net>2010-04-08 20:09:16 +0000
commit55b6a3f313670d2cb13847d1f1b04fe3e4b21d63 (patch)
tree200b7dbe00107507e8111b07747bef2cd3f6a958 /test/fac.resp
parent9d9fa6162295f3813d20f7a3ad4e07ccd6087c3c (diff)
downloadresp-55b6a3f313670d2cb13847d1f1b04fe3e4b21d63.tar.gz
resp-55b6a3f313670d2cb13847d1f1b04fe3e4b21d63.tar.bz2
resp-55b6a3f313670d2cb13847d1f1b04fe3e4b21d63.zip
Tuplr -> Resp (RESource Processing).
git-svn-id: http://svn.drobilla.net/resp/resp@252 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'test/fac.resp')
-rw-r--r--test/fac.resp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fac.resp b/test/fac.resp
new file mode 100644
index 0000000..0fb687c
--- /dev/null
+++ b/test/fac.resp
@@ -0,0 +1,7 @@
+; Factorial
+(def (fac n)
+ (if (= 0 n) 1
+ (* n (fac (- n 1)))))
+
+(fac 6)
+