RosettaCodeData/Task/Runtime-evaluation-In-an-environment/Common-Lisp/runtime-evaluation-in-an-environment-1.lisp

5 lines
150 B
Common Lisp
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
(defun eval-with-x (program a b)
(let ((at-a (eval `(let ((x ',a)) ,program)))
(at-b (eval `(let ((x ',b)) ,program))))
(- at-b at-a)))