def Duration.carry

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

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

72def Duration.carry(c: Bool, s: Int.I64, +n: U32) -> Duration:
73  match c:
74    case True{}:
75      Duration{Int.I64.add(s, i64(1)), (n - 1000000000 : U32)}
76    case False{}:
77      Duration{s, n}

Uses (7)

Used by (1)