def find

bend-lint-pack@0.1.1.0 · vendor/lint.bend:181

import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
import Base

181# The value of an option, if it is given.
182def find(opts: List<&2, Option>, +key: String) -> Maybe<&2, Value>:
183  match opts:
184    case Nil{}:
185      None{}
186    case Con{Option{k, v}, rest}:
187      pick(String.eq(k, key), v, find(rest, key))

Uses (7)

Used by (3)