summaryrefslogtreecommitdiff
path: root/doc/ref/srfi-modules.texi
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-05-03 22:27:14 +0000
committerKevin Ryde <user42@zip.com.au>2003-05-03 22:27:14 +0000
commite508c8630c831181e12d53015365dded77ecef9b (patch)
tree4b351e0ac1fdbd7e591e28fc80127ddec5941cfb /doc/ref/srfi-modules.texi
parent004fe2c8021a98d1db0f18ddb4916703324a1dd6 (diff)
downloadguile-e508c8630c831181e12d53015365dded77ecef9b.tar.gz
(SRFI-1 Length Append etc): Add count.
Diffstat (limited to 'doc/ref/srfi-modules.texi')
-rw-r--r--doc/ref/srfi-modules.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
index 3b751acda..121f448db 100644
--- a/doc/ref/srfi-modules.texi
+++ b/doc/ref/srfi-modules.texi
@@ -381,6 +381,20 @@ first containing the first elements of each lists and the second
containing the second elements of each lists, and so on.
@end deffn
+@deffn {Scheme Procedure} count pred lst1 @dots{} lstN
+Return a count of the number of times @var{pred} returns true when
+called on elements from the given lists.
+
+@var{pred} is called with @var{N} parameters @code{(@var{pred}
+@var{elem1} @dots{} @var{elemN})}, each element being from the
+corresponding @var{lst1} @dots{} @var{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.
+@end deffn
+
@node SRFI-1 Fold and Map
@subsection Fold, Unfold & Map