def Nar.opt
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
483# U8 and U16 hold their value in a U32 below 2^w, and m is 2^w - 1.
484def Nar.opt(ov: Bool, r: U32) -> Maybe<&2, U32>:
485 match ov:
486 case True{}:
487 None{}
488 case False{}:
489 Some{r}