Liking cljdoc? Tell your friends :D

had-utils.core


map-mapclj

(map-map map val-fn)
(map-map map 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

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

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

× close