I don't know if it's specified in the documentation anywhere, but
(= map-I-made-up
  (zipmap
    (keys map-I-made-up)
    (vals map-I-made-up)))

returns true.



On Feb 22, 5:17 pm, Mike Meyer <m...@mired.org> wrote:
> On Tue, 22 Feb 2011 15:36:02 -0800 (PST)
>
> Daniel Bell <dchristianb...@gmail.com> wrote:
> > I can't think of anything core, but
>
> > (let [f #(. % toUpperCase)]
> >   (zipmap (keys skills) (map f (vals skills)))) doesn't seem too bad.
>
> Does clojure guarantee that keys & vals return things in the proper
> order for this to work? Since it doesn't guarantee that serializing
> the entries of a map will always get the same order, that seems
> unlikely.
>
>         thanks,
>         <mike
> --
> Mike Meyer <m...@mired.org>          http://www.mired.org/consulting.html
> Independent Software developer/SCM consultant, email for more information.
>
> O< ascii ribbon campaign - stop html mail -www.asciiribbon.org

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