update-in
-ing an assoc
with the same key are hard to read. assoc-in
is known
and idiomatic.
Examples:
; bad (update-in coll [:a :b] assoc 5)
; good (assoc-in coll [:a :b] 5)
`update-in`-ing an `assoc` with the same key are hard to read. `assoc-in` is known and idiomatic. Examples: ; bad (update-in coll [:a :b] assoc 5) ; good (assoc-in coll [:a :b] 5)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close