std-count-if-not


Synopsis

(std-count-if-not <pred> <lst>)

Description

STD-COUNT-IF-NOT counts the number of any not matching element in the list. It returns a integer number.

Examples

(std-count-if-not 'numberp '(0 1 2 3))      => 0
(std-count-if-not 'stringp '(0 "1" 2 "3"))  => 2

Arguments

pred: a function or lambda list accepting one argument and returning either nil or non-nil.

lst: any proper list.

Return Value

A positive integer number or 0.

Side Effects

Beware that the predicate pred may produce any side-effects.

Module

(std-require 'STDLIST)

Defined in STDLIST

#- SMALL