def asks.under
import ezx@1.11.0.0/src/ws/root.bend as Rootimport Base
40# every directory asked about from one segment further down, now one segment
41# further from the top
42def asks.under(+hd: String, xs: List<&2, Ask>) -> List<&2, Ask>:
43 match xs:
44 case []:
45 []
46 case Ask{ds, rs} <> tl:
47 Ask{hd <> ds, rs} <> asks.under(hd, tl)