[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Cyclic lists and the Interpreter
From: |
Alaric Snell-Pym |
Subject: |
Re: [Chicken-users] Cyclic lists and the Interpreter |
Date: |
Wed, 9 Apr 2008 11:07:31 +0100 |
On 8 Apr 2008, at 6:56 pm, Jim Ursetto wrote:
Of course, length+ returns #f for circular lists. If you want a
count of "distinct elements", a procedure using the tortoise and hare
algorithm is available in the same thread:
http://srfi.schemers.org/srfi-1/mail-archive/msg00096.html
Bah, I just sat and wrote one of those myself, spurred on from this
discussion ;-)
ABS
--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4