(count-when coll)(count-when coll f)Count the number of elements in coll where f returns true. If not supplied use identity as f.
Count the number of elements in coll where f returns true. If not supplied use identity as f.
(map-kv val-fn coll)(map-kv key-fn val-fn coll)Construct a new map from an existing one. Each of val-fn and (optional - default (fn [k _] k)) key-fn are a function of two arguments, the key and value. Note that to make the usage more natural the optional key-fn argument goes in the second place when used.
Construct a new map from an existing one. Each of val-fn and (optional - default (fn [k _] k)) key-fn are a function of two arguments, the key and value. Note that to make the usage more natural the optional key-fn argument goes in the second place when used.
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 |