Hi All,

I am struggling with inserting items into a map.

I would like to create a function that would create a map that would
look like

{  0 [ 01 2 3] ,
   1 [0 1 2 3] ,
   2 [0 1 2 3] }

and want to do something like

(defn create-map []
    (into {} (dotimes [x 2] (assoc x (range 4)))))

but this, of course, doesnt work, since we are not naming the map
like

(assoc map_name key val)

I started trying to use transients, etc but there has to be an easier
way

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