Pudu programming language
Menu

Std.Csv.parseTable

1 declaration

fn

parseTable: Str -> Result[Std.Csv.Table, Std.Csv.CsvError]

This is a callable function.

What it does

A table whose first row names its columns.

Every later row is required to hold as many fields as there are names.

This is where a ragged file is refused rather than in `parse`: a name per

column is a promise that a row's third field is the third column, and a row

with a field missing quietly shifts every field after the gap.

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.

Back to Std.CsvSearch related declarations