def parse

bend-visgraph@2.0.0.0 · src/series.bend:43

import bend-visgraph@2.0.0.0/src/series.bend as Series
import Base

43# The values of `text`, last first, and how many there are; or the first
44# line, counted from 1, that holds no number.
45def parse(text: String) -> Parsed:
46  match text:
47    case SNil{}:
48      Values{Nil{}, 0}
49    case SCon{+h, t}:
50      scan(t, Char.is_eq(h, '\n'), h, SNil{}, 1, Values{Nil{}, 0})

Uses (6)

Used by (2)