Add global eval function

This commit is contained in:
Mike Cifelli 2018-02-12 18:36:15 -05:00
parent 62f351ec62
commit 0290855403
1 changed files with 4 additions and 0 deletions

View File

@ -64,3 +64,7 @@
(cond (cond
((equal 0 n) (first listA)) ((equal 0 n) (first listA))
(t (nth (- n 1) (rest listA))))) (t (nth (- n 1) (rest listA)))))
(eval
(let ((expr (gensym)))
`(defun global-eval (,expr) (eval ,expr))))