|
|
|
|
|
by cb321
805 days ago
|
|
Don't just parse - convert. In a pipeline to split-parseable data, if you like, such as the possibly smaller, faster, and more general: https://github.com/c-blake/nio/blob/main/utils/c2tsv.nim (And, ideally, convert all the way to a mmap & go binary format like nio so you don't have to re-parse.) |
|
csv.split('\n").join('".split(\',\'));a.push("');
So that each line becomes:
a.push("foo,bar,baz".split(','));
And then we have an array of arrays.