def nearest

bolt@1.26.0.0 · src/config.bend:249

import bolt@1.26.0.0/src/config.bend as Config
import 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)

Uses (6)

Used by (2)