Path.climb: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pkg/path.bend as Path Lines 174-181 of ezx@1.11.0.0/src/pkg/path.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pkg/path.bend&start_line=174&end_line=181 import Base # the path with `n` of its components climbed back off, which is where a # package re-roots when a module of it was reached through that many `..` def climb(count: Nat, path: String) -> String: match count: case 0n: norm(path) case 1n+q: climb(q, dir(path)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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/path.bend&name=dir https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/path.bend&name=norm