assoc-in
loops over the args, calling assoc
for each key. If given a single key,
just call assoc
directly instead for performance and readability improvements.
Examples:
; bad (assoc-in coll [:k] 10)
; good (assoc coll :k 10)
`assoc-in` loops over the args, calling `assoc` for each key. If given a single key, just call `assoc` directly instead for performance and readability improvements. Examples: ; bad (assoc-in coll [:k] 10) ; good (assoc coll :k 10)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close