aboutsummaryrefslogtreecommitdiff
path: root/tests/lisp/lambda.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lisp/lambda.lisp')
-rw-r--r--tests/lisp/lambda.lisp12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/lisp/lambda.lisp b/tests/lisp/lambda.lisp
deleted file mode 100644
index 5c93bdb..0000000
--- a/tests/lisp/lambda.lisp
+++ /dev/null
@@ -1,12 +0,0 @@
-(defun Y (f)
- (funcall
- (lambda (g) (funcall g g))
- (lambda (h)
- (funcall f (lambda args (apply (funcall h h) args))))))
-(defun fibo-impl (self)
- (lambda (n)
- (if (<= n 2)
- 1
- (+ (funcall self (- n 1)) (funcall self (- n 2))))))
-(defvar fibo (Y #'fibo-impl))
-(assert (= 55 (funcall fibo 10)))