[CM] CM's loop macro, issues/incompleteness of implementation?

Taube, Heinrich K taube at illinois.edu
Sun Apr 19 05:53:57 PDT 2020


On Apr 19, 2020, at 2:51 AM, Orm Finnendahl <orm.finnendahl at selma.hfmdk-frankfurt.de<mailto:orm.finnendahl at selma.hfmdk-frankfurt.de>> wrote:

There are more things loop provides which weren't considered essential
or even useful in the context of a process. IIRC things like
"collect", "append" or "into" aren't present. To assemble a complete
list check the loop chapter in cltl2 here:


the loop macro itself supports collect, append and into.

(loop repeat 10 collect (random 123))

(117 63 92 31 90 116 76 99 91 11)

(loop repeat 10 append (list 1 2 3))

(1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3)

(loop repeat 10 collect 456 into foo
      finally (return (append foo foo)))

(456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456)

a process is sort of a loop in the sense that it iterates over time and so uses some of the same keywords but its not a loop per se.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20200419/8f669e0d/attachment.html>


More information about the Cmdist mailing list