(?> arg do-it? & rest)Conditional single-arrow operation (-> m (?> add-kv? (assoc :k :v)))
Conditional single-arrow operation (-> m (?> add-kv? (assoc :k :v)))
(?>> do-it? & args)Conditional double-arrow operation (->> nums (?>> inc-all? (map inc)))
Conditional double-arrow operation (->> nums (?>> inc-all? (map inc)))
(as->> name & forms-and-expr)Like as->, but can be used in double arrow.
Like as->, but can be used in double arrow.
(deep-merge-with f & maps)Recursively merges maps. Applies function f when sees duplicated keys
Recursively merges maps. Applies function f when sees duplicated keys
(fn-> & body)Equivalent to `(fn [x] (-> x ~@body))
Equivalent to `(fn [x] (-> x ~@body))
(fn->> & body)Equivalent to `(fn [x] (->> x ~@body))
Equivalent to `(fn [x] (->> x ~@body))
(sum xs)(sum f xs)Return sum of (f x) for each x in xs
Return sum of (f x) for each x in xs
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 |