On Feb 21, 6:47 pm, Mark Volkmann <r.mark.volkm...@gmail.com> wrote:
> I have to wrap the keys in a collection like this instead.
>
> (select-keys popsicle-map [:red :green :blue])
of course if you're doing this much:
user=> (defmacro take-keys [some-map & keys+]
`(select-keys ~some-map ~(vec keys+)))
#'user/take-keys
user=> (take-keys popsicle-map :blue :green)
{:green :apple, :blue :blueberry}
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---