std-position-if-not | ![]() |
STD-POSITION-IF-NOT
returns the first found position (index) of the element which does not match the predicate pred. pred is a function or lambda list accepting one argument and returning either nil or non-nil.
It returns either an integer number or nil if not found.
(std-position-if-not 'numberp '(0 1 2 3)) => nil (std-position-if-not 'stringp '(0 "1" 2 "3")) => 0
pred: a function or lambda list accepting one argument and returning either nil or non-nil.
lst: any proper list.
An integer number or nil.
Beware that the predicate pred may produce any side-effects.
(std-require 'STDLIST)
Defined in STDLIST
#- SMALL