def found
import near-v-framework@0.4.0.0/general/rose/ops.bend as Opsimport Base
40def found(-N: Data, hit: Bool, v: N, below: Maybe<&2, N>, after: Maybe<&2, N>) -> Maybe<&2, N>:
41 match hit:
42 case True{}:
43 Some{v}
44 case False{}:
45 Maybe.or(&2, N, below, after)