(col-str->key-vec col-split-pattern col-str)
Converts a CSV key column string to a vector of keywords. Trims and lower-cases before converting to keyword.
Converts a CSV key column string to a vector of keywords. Trims and lower-cases before converting to keyword.
(csv-row->data &
{:keys [cols col-separator col-parser]
:or {col-parser default-col-parser}})
Closes over the header, returning a function that takes a row and returns a resulting map with keyword keys from header.
optional param :col-parser is a function that is used to parse individual columns - defaults to default-col-parser.
Closes over the header, returning a function that takes a row and returns a resulting map with keyword keys from header. optional param :col-parser is a function that is used to parse individual columns - defaults to default-col-parser.
(data->csv-row &
{:keys [cols col-separator col-emitter]
:or {col-emitter default-col-emitter}})
Closes over the header, returning a function that transforms data to a CSV row with data in same order as the header.
optional param :col-emitter is a function that is used to emit individual columns - defaults to default-col-emitter.
Closes over the header, returning a function that transforms data to a CSV row with data in same order as the header. optional param :col-emitter is a function that is used to emit individual columns - defaults to default-col-emitter.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close