Cli.matched.build: def of shake@0.8.0.0 Import: import shake@0.8.0.0/src/cli.bend as Cli Lines 1445-1455 of shake@0.8.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.8.0.0/src/cli.bend&start_line=1445&end_line=1455 import Base # each command's Matched, root first, with the name selected under it def matched.build(lvs: List<&2, Level>, names: List<&2, String>) -> Matched: match lvs: case Nil{}: Leaf{[]} case Con{hh, tt}: match names: case Nil{}: Leaf{List.reverse(&2, Bind, level.binds(hh))} case Con{nn, ns}: Node{List.reverse(&2, Bind, level.binds(hh)), nn, matched.build(tt, ns)} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=shake@0.8.0.0/src/cli.bend&name=Bind https://jend.leeeet.dev/definition.txt?path=shake@0.8.0.0/src/cli.bend&name=Level https://jend.leeeet.dev/definition.txt?path=shake@0.8.0.0/src/cli.bend&name=Matched https://jend.leeeet.dev/definition.txt?path=shake@0.8.0.0/src/cli.bend&name=level.binds