Hi,

On Jan 12, 12:12 pm, Jarkko Oranen <chous...@gmail.com> wrote:

> > What's the idiomatic Clojure way for extracting values/keys from a
> > binding form vector [key1 val1 key2 val2..] ?
>
> I suppose that depends on what you want, but:
>
> (apply hash-map keyvals) to make a map or
> (map first (partition 2 keyvals)) & (map second (partition 2 keyvals))

And more ways: (take-nth 2 keyvals) & (take-nth 2 (next keyvals))

Sincerely
Meikel
-- 
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