Nar.tree.top: def of ezx@1.13.0.0 Import: import ezx@1.13.0.0/src/sha/nar.bend as Nar Lines 441-448 of ezx@1.13.0.0/src/sha/nar.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.13.0.0/src/sha/nar.bend&start_line=441&end_line=448 import Base # the node of the whole tree, from its listing with the top first: a # directory is built, a file or a symlink is a leaf def tree.top(is_dir: Bool, top: Ent, more: List<&2, Ent>) -> Maybe<&2, String>: match is_dir: case True{}: build(more) case False{}: Some{leaf(top)} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/sha/nar.bend&name=Ent https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/sha/nar.bend&name=build https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/sha/nar.bend&name=leaf