def tools.walk
import ezx@1.11.0.0/src/lock/up.bend as Upimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
import ezx@1.11.0.0/src/ledger/upgrade.bend as U
1099# every tool, in the order the ledger wrote them
1100def tools.walk(+rs: List<&2, Reply>, +only: String, ts: List<&2, M.Tool>) -> Tools:
1101 match ts:
1102 case []:
1103 Tools{[], False{}, [], [], ""}
1104 case +h <> t:
1105 tools.join(tool.sel(U.chosen(only, M.tool.name(h)), rs, h),
1106 tools.walk(rs, only, t))