Wave 4: add sequences/vectors/files chapters, 23 exercises, quiz3, finish ceremony, PCL table

This commit is contained in:
venomade committed 2026-11-22 11:15:35 +00:00
1 parent 77843402fa
commit 4675bd1106
76 files changed
+2505 -14

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
;;; DYNAMIC 4: DEFVAR VS DEFPARAMETER (solution)
(defvar *cache* 10)
(defparameter *config* 10)
(setf *cache* 99)
(setf *config* 99)
(defvar *cache* 10)
(defparameter *config* 10)
(defun current-values ()
(list *cache* *config*))
;;; ------------------------------------------------------------------
;;; Checks. Read them - they tell you what to aim for - but leave
;;; them unchanged.
;;; ------------------------------------------------------------------
(check-equal '(99 10) (current-values))
(check-equal 99 *cache*)
(check-equal 10 *config*)