def mval
import bend-collections-laws-math@1.0.0.0/spec/math/fixed.bend as Fixedimport Base
41def mval(~T: Data, ~val: T -> Nat, r: Maybe<&2, T>) -> Maybe<&2, Nat>:
42 match r:
43 case Some{x}:
44 Some{val(x)}
45 case None{}:
46 None{}
Uses (2)
Used by (60)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixgen:some_of
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixgen:none_of
- 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:CheckedAdd.value
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:CheckedDiv.value
- …