Files.path.norm.pop: def of bend-kit-files@0.3.1.0 Import: import bend-kit-files@0.3.1.0/files.bend as Files Lines 38-44 of bend-kit-files@0.3.1.0/files.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-files@0.3.1.0/files.bend&start_line=38&end_line=44 import Base # A ".." above the root is dropped; above a relative start it is kept. def path.norm.pop(stack: List<&2, String>, abs: Bool) -> List<&2, String>: match stack: case Nil{}: Bool.pick(List<&2, String>, abs, Nil{}, [".."]) case Con{+h, t}: path.norm.pop.if(String.eq(h, ".."), h, t) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=bend-kit-files@0.3.1.0/files.bend&name=path.norm.pop.if