Nar.close: def of ezx@1.13.0.0 Import: import ezx@1.13.0.0/src/sha/nar.bend as Nar Lines 350-358 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=350&end_line=358 import Base import ezx@1.13.0.0/src/pkg/pkg.bend as K # the directory on top finished: its node is an entry of the one around it, # or the whole tree when there is none def close(top: Frame, up: List<&2, Frame>, es: List<&2, Ent>) -> Move: Frame{_at, +name, kids} = top match up: case []: Built{dir(kids)} case Frame{pat, pname, pkids} <> rest: Next{State{es, Frame{pat, pname, K.Item{name, dir(kids)} <> pkids}, rest}} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/pkg/pkg.bend&name=Item 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=Frame https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/sha/nar.bend&name=Move https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/sha/nar.bend&name=State https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/sha/nar.bend&name=dir