[Top][All Lists]

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

doco srfi-1 count

From: Kevin Ryde
Subject: doco srfi-1 count
Date: Thu, 01 May 2003 10:48:41 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

I noticed "count" from srfi-1 doesn't appear in the manual.  Assuming
that's only an accidental ommision I thought to propose the addition

        * srfi-modules.texi (SRFI-1 Length Append etc): Add count.

What's described is per the srfi-1 spec, but the words are by me.  For
ease of reading the text is:

 - Scheme Procedure: count pred lst1 ... lstN
     Return a count of the number of times PRED returns true when
     called on elements from the given lists.

     PRED is called with N parameters `(PRED ELEM1 ... ELEMN)', each
     element being from the corresponding LST1 ... LSTN.  The first
     call is with the first element of each list, the second with the
     second element from each, and so on.

     Counting stops when the end of the shortest list is reached.  At
     least one list must be non-circular.

Attachment: srfi-modules.texi.count.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]