381 |
containing the second elements of each lists, and so on. |
containing the second elements of each lists, and so on. |
382 |
@end deffn |
@end deffn |
383 |
|
|
384 |
|
@deffn {Scheme Procedure} count pred lst1 @dots{} lstN |
385 |
|
Return a count of the number of times @var{pred} returns true when |
386 |
|
called on elements from the given lists. |
387 |
|
|
388 |
|
@var{pred} is called with @var{N} parameters @code{(@var{pred} |
389 |
|
@var{elem1} @dots{} @var{elemN})}, each element being from the |
390 |
|
corresponding @var{lst1} @dots{} @var{lstN}. The first call is with |
391 |
|
the first element of each list, the second with the second element |
392 |
|
from each, and so on. |
393 |
|
|
394 |
|
Counting stops when the end of the shortest list is reached. At least |
395 |
|
one list must be non-circular. |
396 |
|
@end deffn |
397 |
|
|
398 |
|
|
399 |
@node SRFI-1 Fold and Map |
@node SRFI-1 Fold and Map |
400 |
@subsection Fold, Unfold & Map |
@subsection Fold, Unfold & Map |