Liking cljdoc? Tell your friends :D
Clojure only.

noahtheduke.splint.rules.lint.update-in-assoc


update-in-assocclj

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)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close