Period.Period.add_to.y3: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/period.bend as Period Lines 60-67 of bend-time-lib@0.4.0.1/period.bend: https://jend.leeeet.dev/read.txt?path=bend-time-lib@0.4.0.1/period.bend&start_line=60&end_line=67 import Base import bend-time-lib@0.4.0.1/date.bend as D def Period.add_to.y3( +y: U32, +m: U32, +d: U32, +pd: U32, ok: Bool ) -> Result<&2, &2, D.Date.Error, D.Date>: match ok: case False{}: Fail{D.OutOfRange{}} case True{}: Period.add_to.dim(y, m, d, pd, D.Date.dim(m, D.Date.leap(y))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/date.bend&name=Date https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/date.bend&name=Date.Error https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/date.bend&name=Date.dim https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/date.bend&name=Date.leap https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/period.bend&name=Period.add_to.dim