Beginner question, but I really don’t understand why there are so many operations for building maps in clojure.
Do you have conj , assoc and merge , but they seem to more or less do the same thing?
(assoc {:a 1 :b 2} :c 3) (conj {:a 1 :b 2} {:c 3}) (merge {:a 1 :b 2} {:c 3})
What is the difference and why are all these methods necessary when they do more or less the same thing?
clojure
grm Jul 08 '10 at 12:41 2010-07-08 12:41
source share