Returns a lazy sequence containing the positions at which pred
is true for items in coll.
(defn positions "Returns a lazy sequence containing the positions at which pred is true for items in coll." [pred coll] (for [[idx elt] (indexed coll) :when (pred elt)] idx))
Comments top
No comments for positions. Log in to add a comment.