def when.year.dash
import emerging-eztoml@0.9.0.0/main.bend as EmergingEztomlimport 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)