cl-position

cl-position is an autoloaded compiled Lisp function in `cl-seq.el'.

(cl-position ITEM SEQ [KEYWORD VALUE]...)

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

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