Fix 14 wave-4 re-review findings (batches w4a+w4b)
This commit is contained in:
1 parent
a28a35991f
commit
fd5e11cdeb
23 files changed
+98
-29
No files matched your search
@@ -3,4 +3,6 @@
|
||||
DOLIST, DOTIMES, and the LOOP macro.
|
||||
|
||||
DOLIST and DOTIMES are simple walkers. LOOP is a composable
|
||||
sublanguage: FOR ... COLLECT, SUM, WHEN, THEREIS.
|
||||
sublanguage: FOR ... COLLECT, SUM, WHEN, THEREIS. DO and DO* spell
|
||||
a loop out by hand, and LOOP answers with WITH, THEN, UNTIL, COUNT,
|
||||
MAXIMIZE, and LOOP-FINISH for leaving early.
|
||||
@@ -1,8 +1,9 @@
|
||||
;;; LOOPS 6: COUNT, MAXIMIZE, LOOP-FINISH
|
||||
;;;
|
||||
;;; LOOP accumulates more than lists: COUNT tallies the iterations
|
||||
;;; whose test is true, MAXIMIZE tracks the biggest value seen (0
|
||||
;;; for an empty run, so WIDEST below answers NIL itself).
|
||||
;;; whose test is true, MAXIMIZE tracks the biggest value seen -
|
||||
;;; what an empty run answers is implementation-dependent (0 in
|
||||
;;; SBCL), so WIDEST below handles the empty case itself.
|
||||
;;;
|
||||
;;; LOOP-FINISH leaves the iterations early, gently: the FINALLY
|
||||
;;; clause still runs, so (finally (return total)) hands the value
|
||||
|
||||
Reference in new issue
Block a user