Clojure : merging two vectors into one map with new keys and values -


i have 2 vectors [:v1 :v2 :v3] [:v1 :v2 :v3], wish create vector in format :

[ [:key "v1" :value "v1"]   [:key "v2" :value "v2"]   [:key "v3" :value "v3"]   ] 

(mapv (fn [k v] [:key (name k) :value (name v)])   [:v1 :v2 :v3] [:v1 :v2 :v3]) 

Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

Define custom list-style-type in CSS -