def lookup.hit

bend-visgraph@2.0.0.0 · bend_visgraph.bend:64

import bend-visgraph@2.0.0.0/bend_visgraph.bend as BendVisgraph
import 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

Uses (2)

Used by (1)