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 _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
