RFC 4180 CSV as PSOSF uses it: comma-separated, LF line endings (CRLF accepted on reading), fields quoted only when they contain a comma, a quote or a line break, and quotes inside a quoted field doubled.
RFC 4180 CSV as PSOSF uses it: comma-separated, LF line endings (CRLF accepted on reading), fields quoted only when they contain a comma, a quote or a line break, and quotes inside a quoted field doubled.
(read-records s)Parses CSV text into a vector of records, each a vector of strings. A final line ending is optional. Throws ex-info with :psosf/csv-error on an unterminated quoted field or text after a closing quote.
Parses CSV text into a vector of records, each a vector of strings. A final line ending is optional. Throws ex-info with :psosf/csv-error on an unterminated quoted field or text after a closing quote.
(write-records records)Writes records as CSV, quoting only where required, each line ending in LF.
Writes records as CSV, quoting only where required, each line ending in LF.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |