Reputation: 1503
What is an idiomatic way to get the maps with a specific value for a particular key in a Clojure seq?
E.g. get the maps in a seq :tag
-ed with :fubar
value.
(filter #(= (% :tag) :fubar) some-seq)
This works, but I'm guessing there is some more elegant way to do it...
Upvotes: 4
Views: 763