(line->ints line)
Get integers from a string. Assumes the string begins and ends with a digit. Note that this does not handle negative numbers.
Get integers from a string. Assumes the string begins and ends with a digit. Note that this does _not_ handle negative numbers.
(slurp-grid path)
(slurp-grid path f)
Slurp the file at path
, making a two-d grid of one character substrings. If
f
is supplied then map it over each substring.
Slurp the file at `path`, making a two-d grid of one character substrings. If `f` is supplied then map it over each substring.
(slurp-lines path)
Slurp the file at path
and split into lines
Slurp the file at `path` and split into lines
(slurp-lines-map path map-fn)
Slurp the file at path
, split into lines, and map map-fn
over the result.
Slurp the file at `path`, split into lines, and map `map-fn` over the result.
(slurp-split path split-re)
Slurp the file at path
and split into parts on split-re
.
Slurp the file at `path` and split into parts on `split-re`.
(slurp-split-map path split-re map-fn)
Slurp the file at path
, split into parts on split-re
,
and map map-fn
over the result.
Slurp the file at `path`, split into parts on `split-re`, and map `map-fn` over the result.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close