Std.Csv
15 public declarations
- column
&Std.Csv.Table -> Str -> Option[Array[Str]]Every value in one column, or nothing when the table has no such column.
- CsvError
Why text does not name a table.
- CsvReadError
Why the rows of a file could not all be read.
- foldRows
Str -> T -> fn(T, Array[Str]) -> T -> Result[T, Std.Csv.CsvReadError]Combine every row of a comma-separated file into one value, holding one
- foldRowsWith
Str -> Str -> T -> fn(T, Array[Str]) -> T -> Result[T, Std.Csv.CsvReadError]The same, for a file whose fields are separated by something else.
- indexOfColumn
&Std.Csv.Table -> Str -> IntWhere a column sits, or `-1` when the table has no column of that name.
- parse
Str -> Result[Array[Array[Str]], Std.Csv.CsvError]Every row of a comma-separated text, fields already unquoted.
- parseTable
Str -> Result[Std.Csv.Table, Std.Csv.CsvError]A table whose first row names its columns.
- parseWith
Str -> Str -> Result[Array[Array[Str]], Std.Csv.CsvError]The same, for a text whose fields are separated by something else.
- record
&Std.Csv.Table -> Int -> Option[Map[Str, Str]]One row read by column name rather than by position.
- records
&Std.Csv.Table -> Array[Map[Str, Str]]Every row read by column name.
- render
&Array[Array[Str]] -> StrRows written as comma-separated text, ending with a newline.
- renderTable
&Std.Csv.Table -> StrA table written with its column names as the first row.
- renderWith
&Array[Array[Str]] -> Str -> StrThe same, separated by something else.
- Table
A table read with its first row taken as the names of its columns.
