def Weekday.fwd.gap

bend-time-lib@0.4.0.1 · date.bend:408

import bend-time-lib@0.4.0.1/date.bend as Date
import Base

408def Weekday.fwd.gap(+cur: U32, +tgt: U32, gt: Bool) -> U32:
409  match gt:
410    case True{}:
411      U32.sub(tgt, cur)
412    case False{}:
413      U32.sub(U32.add(tgt, 7), cur)

Uses (4)

Used by (1)