Post #3905940
2026-07-17 17:27 UTC
On the subject of `common-lisp:loop’,
I offer an exercise at the intermediate level (or maybe a little more than intermediate).
How would you implement a `for’ subclause extending the loop facility with a way to step through a sequence (of the generic kind, i.e. a single subclause that works for both lists and vectors)?
Would adding such a subclause be a good idea or not, and why?
#CommonLisp
Replies (1)
-
@jackdaniel@functional.cafe 2026-07-18 08:40
@vnikolov@ieji.de MIT loop, base of /most/ cl:loop implementations, has an operator to add such extensions. but ut is not part of CL standard, so it may be considered to be vendored extension. edit: sicl loop also can be extended