Liking cljdoc? Tell your friends :D
Clojure only.

noahtheduke.splint.rules.lint.fn-wrapper


fn-wrapperclj

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?] ...)
sourceraw docstring

fn??clj

(fn?? sexp)
source

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

× close