def tz.clock.valid

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

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

855def tz.clock.valid(ok: Bool, +value: Int.I64, negative: Bool, rest: String) -> Maybe<&2, TzClock>:
856  match ok:
857    case False{}:
858      None{}
859    case True{}:
860      Some{TzClock{Bool.pick(Int.I64, negative, Int.I64.neg(value), value), rest}}

Uses (7)

Used by (1)