On Sep 2, 1:44 am, Richard Newman <holyg...@gmail.com> wrote:
> Conrad,
>
>    (into {}
>      (filter (fn [[key val]]
>                (even? val))
>      {:dog 5 :cat 4 :mouse 7 :cow 6}))
>
>    =>
>    {:cat 4, :cow 6}

Or if you like "point-free" style
(into {}
   (filter (comp even? second)
            {:dog 5 :cat 4 :mouse 7 :cow 6}))
=>
{:cat 4, :cow 6}

/Karl


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to