From 0d7a7f765cea6c4c49c042b048a4884bf2823f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Thu, 30 Mar 2023 21:37:20 +0200 Subject: [PATCH] Document CSV simple module. --- MODULES.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/MODULES.md b/MODULES.md index 85f3cc8..a189048 100644 --- a/MODULES.md +++ b/MODULES.md @@ -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.