def Iso8601.per.valid2

bend-time-lib@0.4.0.1 · iso8601.bend:562

import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601
import Base
import bend-time-lib@0.4.0.1/period.bend as Per

562def Iso8601.per.valid2(
563  y: U32, m: U32, d: U32, ok: Bool
564) -> Result<&2, &2, Iso8601.Error, Per.Period>:
565  match ok:
566    case False{}:
567      Fail{Invalid{}}
568    case True{}:
569      Iso8601.per.mk2(Per.Period.from(y, m, d))

Uses (7)

Used by (1)