Pudu programming language
Menu
API reference

Std.Text.Parse.lineAndColumn

1 declaration

fn

lineAndColumn: Str -> Int -> (Int, Int)

This is a callable function.

What it does

Where a position falls in the source, counted from one as a reader counts.

A problem carries only how many characters were consumed, because counting

lines on every step would charge every parse for an answer almost no parse

asks for. The count is made here instead, once, when a person is about to

read it.

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.

Back to Std.Text.ParseSearch related declarations