Week.IsoWeek.from_date.year: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/week.bend as Week Lines 35-42 of bend-time-lib@0.4.0.1/week.bend: https://jend.leeeet.dev/read.txt?path=bend-time-lib@0.4.0.1/week.bend&start_line=35&end_line=42 import Base import bend-time-lib@0.4.0.1/date.bend as D def IsoWeek.from_date.year( +d: D.Date, r: Result<&2, &2, D.Date.Error, D.Date> ) -> Result<&2, &2, D.Date.Error, IsoWeek>: match r: case Fail{e}: Fail{e} case Done{D.Date{+y, _, _}}: IsoWeek.from_date.mon1(d, y, D.Date.from(y, 1, 4)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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.from https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/week.bend&name=IsoWeek https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/week.bend&name=IsoWeek.from_date.mon1