Varun J.P
Varun J.P

Reputation: 29

Remove all elements from a dynamic map in clojure

I have a Dynamic Map

(def ^:dynamic all-elements-name-map {})

I have inserted many elements to this map in an iteration. In order to prepare for the next iteration i need to clear all the contents in this map. Is there a inbuilt way to clear all the elements or do i need to dissoc each element from the map in a loop

Upvotes: 1

Views: 203

Answers (0)

Related Questions