Liking cljdoc? Tell your friends :D

noahtheduke.splint.rules.style.single-key-in


getterclj

(getter sexp)
source

setterclj

(setter ?f)
source

single-key-inclj

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

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

× close