def tz.event.next.if

bend-kit-time@0.3.0.0 · time.bend:1108

import bend-kit-time@0.3.0.0/time.bend as Time
import Base
import bend-kit-int@0.2.0.0/int.bend as Int

1108def tz.event.next.if(valid: Bool, now: Int.I64, old: Maybe<&2, TzEvent>, r: TzRule, y: U32) -> Maybe<&2, TzEvent>:
1109  match valid:
1110    case True{}:
1111      tz.event.year(now, old, r, (y + 1 : U32))
1112    case False{}:
1113      old

Uses (8)

Used by (1)