Hello all,

I'm studying a little bit of Clojure and facing a doubt here.

I hava a list (a b c) and want to create a hashmap using the elements from
this list.

The keys will be a sequential number, and the values will be the values
from the previous list.

1. list:
  (a b c)

2. desired hashmap:
  (hash-map 1 "a" 2 "b" 3 "c")

How can I achieve this in a idiomatic functional way?

Cheers. And thank you for your attention.

-- christian

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