def find
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lintimport 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))