Iso8601.Iso8601.per.valid2: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601 Lines 562-569 of bend-time-lib@0.4.0.1/iso8601.bend: https://jend.leeeet.dev/read.txt?path=bend-time-lib@0.4.0.1/iso8601.bend&start_line=562&end_line=569 import Base import bend-time-lib@0.4.0.1/period.bend as Per def Iso8601.per.valid2( y: U32, m: U32, d: U32, ok: Bool ) -> Result<&2, &2, Iso8601.Error, Per.Period>: match ok: case False{}: Fail{Invalid{}} case True{}: Iso8601.per.mk2(Per.Period.from(y, m, d)) Uses (7): 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/iso8601.bend&name=Iso8601.Error https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/iso8601.bend&name=Iso8601.per.mk2 https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/period.bend&name=Period https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/period.bend&name=Period.from