def nearest
import bolt@1.26.0.0/src/config.bend as Configimport Base
249# the first file that was there, parsed; none, the defaults
250def nearest(rs: List<&2, Maybe<&2, String>>) -> Config:
251 match rs:
252 case Nil{}:
253 none()
254 case Con{Some{text}, rest}:
255 parse(text)
256 case Con{None{}, rest}:
257 nearest(rest)