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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |