aboutsummaryrefslogtreecommitdiffstats
path: root/test/fac.tpr
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-18 20:22:10 +0000
committerDavid Robillard <d@drobilla.net>2009-06-18 20:22:10 +0000
commit545b524bda45f2087ac92cf58f6eaa78499332cf (patch)
tree71043cffd2b64da7420d2840a6be666b9fef037a /test/fac.tpr
parent4e34e229beb12164ea49b1121785dc71eb7c3566 (diff)
downloadresp-545b524bda45f2087ac92cf58f6eaa78499332cf.tar.gz
resp-545b524bda45f2087ac92cf58f6eaa78499332cf.tar.bz2
resp-545b524bda45f2087ac92cf58f6eaa78499332cf.zip
Primitive internal macro system (for implementing sugar).
(def (f x) ...) sugar. git-svn-id: http://svn.drobilla.net/resp/tuplr@119 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'test/fac.tpr')
-rw-r--r--test/fac.tpr6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fac.tpr b/test/fac.tpr
index 77e4776..0fb687c 100644
--- a/test/fac.tpr
+++ b/test/fac.tpr
@@ -1,7 +1,7 @@
; Factorial
-(def fac (fn (n)
+(def (fac n)
(if (= 0 n) 1
- (* n (fac (- n 1))))))
+ (* n (fac (- n 1)))))
-(fac 5)
+(fac 6)