(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-map m val-fn)
(map-map m key-fn val-fn)
Construct a new map from an existing one. Each of val-fn and (optional - default (fn [k v] 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 v] 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.
(parse-int str)
(parse-int str radix)
Parse integer with default radix 10.
Parse integer with default radix 10.
(slurp-lines path)
Slurp a file and split into lines
Slurp a file and split into lines
(slurp-lines-map path map-fn)
Slurp a file, split into lines, and map a function over the result.
Slurp a file, split into lines, and map a function over the result.
(slurp-split path split-re)
Slurp a file and split into parts on a regexp.
Slurp a file and split into parts on a regexp.
(slurp-split-map path split-re map-fn)
Slurp a file, split into parts on a regexp, and map a function over the result.
Slurp a file, split into parts on a regexp, and map a function over the result.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close