position-if

position-if is an alias for `cl-position-if' in `cl.el'.

(position-if PREDICATE SEQ [KEYWORD VALUE]...)

Find the first item satisfying PREDICATE in SEQ.
Return the index of the matching item, or nil if not found.

Keywords supported: :key :start :end :from-end