Pudu programming language
Menu
API reference

Std.Time.Format.parse

1 declaration

fn

parse: Str -> Str -> Result[Int, Std.Time.Format.FormatError]

This is a callable function.

What it does

The moment a pattern reads out of text.

Only the numeric directives and %b can be read back, because they are the

ones whose width says where they end. A pattern holding one that cannot be

read is reported rather than guessed at, since a reader that guessed would

answer a moment nobody wrote.

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.Time.FormatSearch related declarations