A CSV parser.
Convert a string of values separated by a separator into a Csv structure.
>>> parseWith ";" "id;value\n1;one\n2;two\n"
{
headers = ["id", "value"],
records = [
["1", "one"],
["2", "two"]
]
}Convert a string of comma-separated values into a Csv structure.
>>> parse "id,value\n1,one\n2,two\n"
{
headers = ["id", "value"],
records = [
["1", "one"],
["2", "two"]
]
}Convert a string of comma-separated values into a list of lists.
>>> split "id,value\n1,one\n2,two\n"
[["id", "value"], ["1", "one"], ["2", "two"]]Convert a string of values separated by a character into a list of lists.
>>> splitWith "," "id,value\n1,one\n2,two\n"
[["id", "value"], ["1", "one"], ["2", "two"]]
The
Csvtype structure.