def when.year.dash

emerging-eztoml@0.9.0.0 · main.bend:1068

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

1068# the dash after the year
1069def when.year.dash(cs: List<&2, Char>, yy: U32) -> WhenOut:
1070  match cs:
1071    case []:
1072      WFail{"invalid date"}
1073    case +c <> t:
1074      when.month(Char.is_eq(c, '-'), take.n(2n, t, 0, True{}), yy)

Uses (8)

Used by (1)