def tree.of
import ezx@1.11.0.0/src/fetch/plan.bend as Planimport Base
import ezx@1.11.0.0/src/fetch/world.bend as F
111# what arrived for a question
112def tree.of(answer: F.Answer, +root: String) -> Tree:
113 match answer:
114 case F.Read{a}:
115 tree.read(a)
116 case F.Said{a}:
117 tree.said(a, root)
118 case F.Held{_got}:
119 Gone{"ez: a tree was not answered with one"}
120 case F.Seen{_listing}:
121 Gone{"ez: a tree was not answered with one"}