def root.go
import ezx@1.11.0.0/src/ws/root.bend as Rootimport Base
96# the root, from the directories read, nearest first: the first whose ledger
97# is a workspace root that claims where ez runs, a table that could not be
98# read if one comes first, and a project of its own when there is neither
99def root.go(ups: List<&2, Up>) -> Found:
100 match ups:
101 case []:
102 Alone{}
103 case Up{ds, rs, tx} <> tl:
104 rest = root.go(tl)
105 root.at(tx, ds, rs, rest)