Liking cljdoc? Tell your friends :D
Clojure only.

noahtheduke.splint.rules.style.redundant-let


redundant-letclj

Directly nested lets can be merged into a single let block.

Examples:

bad

(let [a 1] (let [b 2] (println a b)))

(let [a 1 b 2] (println a b))

Directly nested lets can be merged into a single let block.

Examples:

# bad
(let [a 1]
  (let [b 2]
    (println a b)))

(let [a 1
      b 2]
  (println a b))
sourceraw docstring

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

× close