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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close