def asks.under

ezx@1.11.0.0 · src/ws/root.bend:40

import ezx@1.11.0.0/src/ws/root.bend as Root
import 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)

Uses (3)

Used by (1)