Std.Csv.foldRows
fn
foldRows: Str -> T -> fn(T, Array[Str]) -> T -> Result[T, Std.Csv.CsvReadError]This is a callable function.
What it does
Combine every row of a comma-separated file into one value, holding one
chunk and one record at a time.
The rows are the ones `parse` gives for the whole text, including a quoted
field that holds a newline. Rows before a failure have already reached
`step`; after it, the rest of the file is read without further work.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- Names inside [ ] are type arguments, such as the item type held by a collection.
- Result makes success and recoverable failure part of the function's type.
