transcendental-lisp/fitnesse/FitNesseRoot/LispInterpreter/Closure.wiki

7 lines
269 B
Plaintext
Raw Normal View History

---
Test
---
| script | lisp interpreter fixture |
| evaluate | (defun adderx (x) (lambda (y) (+ x y))) |
| evaluate | (setf adder20 (adderx 20)) |
| check | evaluate | (funcall adder20 2) | 22 |