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

+2 -2
View File
@@ -4,8 +4,8 @@
;;; LET may reuse a name: the new binding shadows the old one, and
;;; the initializer still evaluates in the outer scope.
;; TODO: The inner X should be the outer X plus 5 - make it so,
;;; without changing either number.
;; TODO: Keep the outer 15; make the inner binding the outer X
;; plus 5.
(defun shadow-add ()
(let ((x 15))
(let ((x 15))
+1
View File
@@ -2,6 +2,7 @@
;;;
;;; SETF assigns to any "place": a variable, a list element, a
;;; property. The general shape is (setf PLACE new-value).
;;; (getf *account* :balance) reads the property back.
(defparameter *account* (list :owner "Ada" :balance 100))