On Apr 19, 2020, at 2:51 AM, Orm Finnendahl 
<[email protected]<mailto:[email protected]>>
 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.

_______________________________________________
Cmdist mailing list
[email protected]
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to