On Wed, Jun 05, 2013 at 08:19:15PM +0200, Thomas Chust wrote: > On 2013-06-05 20:11, Peter Bex wrote: > > On Wed, Jun 05, 2013 at 07:57:49PM +0200, Thomas Chust wrote: > >> but it's trivial to detect cyclic lists during the traversal using > >> either a set of seen elements or just two iteration pointers travelling > >> at different speeds. > > > > In C that's rather painful. Note that the OP was asking specifically > > for a C_listp macro. > > [...] > > Hello, > > well, I think that two iteration pointers are trivial even in C, but > that may be a matter of taste :-)
Of course you're right. I was thinking of the set of seen elements. I need sleep. Cheers, Peter -- http://www.more-magic.net _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
