[Prev][Next][Index][Thread]

Re: count



At 8:39 AM -0800 5/3/01, Gabor Greif wrote:
>I like the reduce version, but reduce1 will fail with
>empty collections. Here is my try:

Oh, if it went into a library somewhere it would *definitely* be in 
the explicit loop form, just as the functions currently in 
collection.dylan are.

It can also be specialized for various collection types e.g. hashes 
and anything sorted.

-- Bruce


References: