A number of core functions take any number of arguments and return the arg if given only one. These calls are effectively no-ops, redundant, so they should be avoided.
Current list of clojure.core functions this linter checks:
->, ->>cond->, cond->>some->, some->>comp, partial, mergeExamples:
; bad (-> x) (->> x) (cond-> x) (cond->> x) (some-> x) (some->> x) (comp x) (partial x) (merge x)
; good x
A number of core functions take any number of arguments and return the arg if given only one. These calls are effectively no-ops, redundant, so they should be avoided. Current list of clojure.core functions this linter checks: * `->`, `->>` * `cond->`, `cond->>` * `some->`, `some->>` * `comp`, `partial`, `merge` Examples: ; bad (-> x) (->> x) (cond-> x) (cond->> x) (some-> x) (some->> x) (comp x) (partial x) (merge x) ; good x
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |