std-count-if | ![]() |
STD-COUNT-IF
counts the number of any matching element in the list. It returns a integer number.
(std-count-if 'numberp '(0 1 2 3)) => 4 (std-count-if 'stringp '(0 "1" 2 "3")) => 2
pred: a function or lambda list accepting one argument and returning either nil or non-nil.
lst: any proper list.
A positive integer number or 0.
Beware that the predicate pred may produce any side-effects.
(std-require 'STDLIST)
Defined in STDLIST
#- SMALL