Fix 12 exercise defects from review wave 1 (scouts a+d)

This commit is contained in:
venomade committed 2026-11-22 04:31:29 +00:00
1 parent 3f753b2a8f
commit 2735c8dca5
18 files changed
+49 -5

No files matched your search

+1 -1
View File
@@ -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))))