> If there is a non-loopy part which runs into a
loop, [...]
> Consider A->B->C->D->E->C, started
at A.
Hmm ... good point.
-spc (But who constructs circular lists like that? 8-P
I have.
Not *deliberately*, mind you, at least not often. :-) Most of the loop
detectors I've written have been in debugging output code, which
shouldn't fall over even if the linked list is mildly corrupt.
As for deliberately building such lists, I can see uses for them if you
have mapcar, or something like it, and want to feed certain inputs a
repeating pattern with a nonrepeating initial part. (Relatively rare
uses, admittedly.)
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse at rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B