Avoid wrapping functions in pass-through anonymous function defitions.
Examples:
; bad (fn [num] (even? num))
; good even?
; bad (let [f (fn [num] (even? num))] ...)
; good (let [f even?] ...)
Avoid wrapping functions in pass-through anonymous function defitions. Examples: ; bad (fn [num] (even? num)) ; good even? ; bad (let [f (fn [num] (even? num))] ...) ; good (let [f even?] ...)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close