Path.push: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/path.bend as Path Lines 4-7 of bolt@1.27.0.0/src/lsp/path.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/path.bend&start_line=4&end_line=7 import Base # a segment lands on the stack (reversed): `..` pops, `.` and `` do nothing def push(+seg: String, +acc: List<&2, String>) -> List<&2, String>: Bool.pick(List<&2, String>, String.eq(seg, ".."), List.tail(&2, String, acc), Bool.pick(List<&2, String>, Bool.or(String.eq(seg, "."), String.is_empty(seg)), acc, seg <> acc)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or 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=List.tail 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=Base/base.bend&name=String.is_empty