I have the following map which I want to iterate:
(def db {:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql"
:subname "//100.100.100.100:3306/clo"
:username "usr" :password "pwd"})
I've tried the following, but rather than printing the key and value once, it repeatedly prints the key and values as various combinations:
(doseq [k (keys db)
v (vals db)]
(println (str k " " v)))
I came up with a solution, but Brian's (see below) are much more logical.
(let [k (keys db) v (vals db)]
(do (println (apply str (interpose " " (interleave k v))))))