def find

bend-lint-api@0.2.0.0 · shared/names.bend:34

import bend-lint-api@0.2.0.0/shared/names.bend as Names
import 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))

Uses (5)

Used by (8)