Fix 16 mid-chapter exercise defects (scouts mid1+mid2)
Verified: dev/verify.sh all 70 exercises green (broken fail, solved pass).
This commit is contained in:
1 parent
2735c8dca5
commit
6e2c382c78
24 files changed
+34
-15
No files matched your search
@@ -72,7 +72,7 @@ Found an issue, or want to add an exercise? Improvements welcome!")
|
||||
:hint "The condition needs to be a TEST, not the temperature itself: (> temperature 30). Any number - even 0 - is true, so the broken version always answers hot.")
|
||||
(:name "if2"
|
||||
:dir "04_conditionals"
|
||||
:hint "IF takes exactly one then-form and one else-form; the fourth part makes it malformed. COND handles many branches: (cond ((zerop n) \"zero\") ((minusp n) \"negative\") (t \"positive\")).")
|
||||
:hint "IF takes exactly one then-form and at most one else-form; the fourth part makes it malformed. COND handles many branches: (cond ((zerop n) \"zero\") ((minusp n) \"negative\") (t \"positive\")).")
|
||||
(:name "if3"
|
||||
:dir "04_conditionals"
|
||||
:hint "WHEN runs its body when the test is TRUE - plusp, not minusp. For enter, only an IF with both branches can return :denied when the door is shut.")
|
||||
@@ -141,7 +141,7 @@ Found an issue, or want to add an exercise? Improvements welcome!")
|
||||
:hint "FORMAT iterates with ~{ ... ~}, and ~^ skips the separator at the last element: (format nil \"~{~a~^, ~}\" xs).")
|
||||
(:name "loops1"
|
||||
:dir "10_loops"
|
||||
:hint "DOLIST walks a list: (dolist (x xs) (incf total x)). DOTIMES counts from 0; PUSH inside it builds the countdown naturally.")
|
||||
:hint "DOLIST walks a list: (dolist (x xs) (setf total (+ total x))). DOTIMES counts from 0; PUSH inside it builds the countdown naturally.")
|
||||
(:name "loops2"
|
||||
:dir "10_loops"
|
||||
:hint "COLLECT gathers into a list, SUM adds: (loop for i from 1 to n sum i).")
|
||||
|
||||
Reference in new issue
Block a user