• (flatten-map m)
Transforms a map into a vector like [key value key value].

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/test_is.clj:66 top

(defn flatten-map
  "Transforms a map into a vector like [key value key value]."
  [m]
  (reduce (fn [coll [k v]] (conj coll k v))
          [] m))
Vars in clojure.contrib.test-is/flatten-map: conj defn fn reduce
Used in 0 other vars

Comments top

No comments for flatten-map. Log in to add a comment.