Fix 12 exercise defects from review wave 1 (scouts a+d)
This commit is contained in:
1 parent
3f753b2a8f
commit
2735c8dca5
18 files changed
+49
-5
No files matched your search
@@ -3,7 +3,7 @@
|
||||
(defun eval-expr (expr)
|
||||
(cond ((numberp expr) expr)
|
||||
((and (consp expr) (eq 'quote (car expr)))
|
||||
(second expr))
|
||||
(car (cdr expr)))
|
||||
((and (consp expr) (member (car expr) '(+ - *)))
|
||||
(apply (car expr) (mapcar #'eval-expr (cdr expr))))
|
||||
(t (error "cannot evaluate ~s" expr))))
|
||||
|
||||
Reference in new issue
Block a user