def tree.of
import ezx@1.11.0.0/src/pub/plan.bend as Planimport Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
import ezx@1.11.0.0/src/pub/world.bend as PW
410# every file read so far, as the walk is given them: not a whole checkout, so
411# a file not read yet is a question
412def tree.of(rs: List<&2, PW.Reply>) -> K.Tree:
413 match rs:
414 case []:
415 K.Tree{False{}, [], []}
416 case PW.Reply{ask, got} <> t:
417 tree.one(ask, got, tree.of(t))