Document CSV simple module.

This commit is contained in:
Dominik Pantůček 2023-03-30 21:37:20 +02:00
parent ba874bc953
commit 0d7a7f765c

View file

@ -772,3 +772,24 @@ bottom table border.
The resulting list of strings is joined with newline character as the
separator.
### CSV Simple
This module provides a very simple, incomplete and incorrect but fast
CSV loader.
(csv-parse filename
[#:separator ";"]
[#:string-delimiter "\""])
* ```separator``` - cell separator in CSV file
* ```string-delimiter``` - for introducing strings possibly with separators
Parses given CSV file and returns list of lists of strings
representing its contents.
(csv-split-header csv)
* ```csv``` - list of lists of strings
Splits given loaded CSV into at the first empty row.