def conf.first
import bolt@1.27.0.0/src/lint/plan.bend as Planimport Base
427# the path of the first candidate the World holds a text for, as a list of
428# one; none when it holds none
429def conf.first(gs: List<&2, Got>) -> List<&2, String>:
430 match gs:
431 case Nil{}:
432 Nil{}
433 case Con{Got{path, Some{_text}}, _rest}:
434 [path]
435 case Con{Got{_path, None{}}, rest}:
436 conf.first(rest)