def find
import bend-lint-api@0.2.0.0/shared/names.bend as Namesimport Base
34# The value `key` names in `table`, a map by name (as `Lint.definitions` makes): one pass over the name, however many
35# names there are.
36def find(-A: Data, table: Map<&2, Maybe<&2, A>>, key: String) -> Maybe<&2, A>:
37 Pair.snd(Map<&2, Maybe<&2, A>>, Maybe<&2, A>, Map.get(Maybe<&2, A>, None{}, table, key))