It exists in clojure.contrib, and it's called separate. It's easy to rewrite, of course, as you note; but I prefer:
(def split-pred (juxt filter remove)) On Jun 25, 8:56 pm, Alex Baranosky <[email protected]> wrote: > Something like this is probably good: > > (defn split-pred [pred coll] > [(filter pred coll) (remove pred coll)]) > > But I wanted to make sure I wasn't reinventing the wheel! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
