Liking cljdoc? Tell your friends :D

had-utils.core


count-whenclj

(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
sourceraw docstring

map-mapclj

(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.
sourceraw docstring

parse-intclj

(parse-int str)
(parse-int str radix)

Parse integer with default radix 10.

Parse integer with default radix 10.
sourceraw docstring

slurp-linesclj

(slurp-lines path)

Slurp a file and split into lines

Slurp a file and split into lines
sourceraw docstring

slurp-lines-mapclj

(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.
sourceraw docstring

slurp-splitclj

(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.
sourceraw docstring

slurp-split-mapclj

(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.
sourceraw docstring

transposeclj

(transpose seqs)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close