def trees
import ezx@1.11.0.0/src/doctor/plan.bend as Planimport Base
import ezx@1.11.0.0/src/doctor/world.bend as DW
import ezx@1.11.0.0/src/lock/world.bend as W
567# every tree BEND_LIB held, as the lock's answers
568def trees(rs: List<&2, DW.Reply>) -> List<&2, W.Reply>:
569 match rs:
570 case []:
571 []
572 case DW.Reply{ask, answer} <> t:
573 tree.reply(ask, answer, trees(t))