def Iso8601.dur.seek2

bend-time-lib@0.4.0.1 · iso8601.bend:501

import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601
import Base
import bend-scanner@0.1.0.0/parse.bend as P

501def Iso8601.dur.seek2(
502  off: Nat, st: Iso8601.DurS, +h: Char, is_dig: Bool
503) -> Iso8601.DurC:
504  match is_dig:
505    case True{}:
506      DurCont{st, DNum{P.Parse.nacc(0, h)}}
507    case False{}:
508      DurFail{Extra{off, h}}

Uses (8)

Used by (1)