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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -