Nar.place: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/sha/nar.bend as Nar Lines 380-396 of ezx@1.11.0.0/src/sha/nar.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/sha/nar.bend&start_line=380&end_line=396 import Base import ezx@1.11.0.0/src/pkg/pkg.bend as K # a path inside the directory on top: a directory is opened, anything else # is an entry of it, with its leaf's node def place( is_dir: Bool, +name: String, +at: String, +node: String, more: List<&2, Ent>, top: Frame, up: List<&2, Frame> ) -> Move: match is_dir: case True{}: Next{State{more, Frame{at, name, []}, top <> up}} case False{}: Frame{a, n, ks} = top Next{State{more, Frame{a, n, K.Item{name, node} <> ks}, up}} Uses (8): 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=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Item https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=Ent https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=Frame https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=Move https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=State