Hmmm... this seems like a cool way to do this. Could you provide an example for when you need to this? A few use cases would help me understand the intent.
Sean On Aug 17, 7:18 pm, Stuart Halloway <stuart.hallo...@gmail.com> wrote: > I wrote this for the book: > > (defn index-filter [pred coll] > (when pred > (for [[idx elt] (indexed coll) :when (pred elt)] idx))) > > and I keep finding myself needing it all over the place. Is there a > better idiom for finding *positions* of things in a sequence, rather > than the things themselves? If not, should I add this to contrib? > > Stuart (H) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---