def nested

ezx@1.11.0.0 · src/ws/workspace.bend:304

import ezx@1.11.0.0/src/ws/workspace.bend as Workspace
import Base

304# the first member whose ledger has a `[workspace]` table, "" for none
305def nested(ls: List<&2, Ledger>) -> String:
306  match ls:
307    case []:
308      ""
309    case +hd <> tl:
310      rest = nested(tl)
311      Bool.pick(String, ledger.nested(hd), segs.text(ledger.dir(hd)), rest)

Uses (7)

Used by (1)