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 :-)

Ciao,
Thomas


-- 
When C++ is your hammer, every problem looks like your thumb.


-- 
When C++ is your hammer, every problem looks like your thumb.


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to