Printing map in Clojure

/ Published in: Clojure
Save to your folder(s)

Function prints all key value pars of Clojure map in key : value format.
Useful in debugging.

Copy this code and paste it in your HTML
  1. (defn print-map [m]
  2. (for [[x,y] (seq m)] (println (str x " : " y))))

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.