def lookup.hit
import bend-visgraph@2.0.0.0/bend_visgraph.bend as BendVisgraphimport Base
64def lookup.hit(-A: Data, hit: Bool, v: A, rest: Maybe<&2, A>) -> Maybe<&2, A>:
65 match hit:
66 case True{}:
67 Some{v}
68 case False{}:
69 rest