Iterate over a map in Clojure
(def book {:title "Grit" :author "Angela Duckworth"})
(doseq [[key value] book] (println (format "%s is %s" key value)))
Written by Alex Popov
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Clojure
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#