Any ideas what ???? should be? Is there a built in? What would be the best way to accomplish this task?
????
(def v [\"one\" \"two\" \"three\" \"two
I'd go with reduce-kv
(defn find-index [pred vec] (reduce-kv (fn [_ k v] (if (pred v) (reduced k))) nil vec))