def keep
import bend-collections-laws-math@1.0.0.0/spec/math/fixed.bend as Fixedimport Base
48def keep(ok: Bool, +n: Nat) -> Maybe<&2, Nat>:
49 match ok:
50 case True{}:
51 Some{n}
52 case False{}:
53 None{}
Uses (3)
Used by (19)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixgen:chk_fit
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:CheckedDiv.value
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:CheckedRem.value
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:CheckedShl.value
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:CheckedShr.value
- …