Config.home.step: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/config.bend as Config Lines 206-211 of bolt@1.27.0.0/src/config.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/config.bend&start_line=206&end_line=211 import Base # a path's segment read onto the directories before it, innermost first: an # empty segment (from `//` or the `/` a directory ends in) and `.` stay where # they are, `..` goes up one (never above the root), and a name goes into it def home.step(+seg: String, +above: List<&2, String>) -> List<&2, String>: Bool.pick(List<&2, String>, Bool.or(String.is_empty(seg), String.eq(seg, ".")), above, Bool.pick(List<&2, String>, String.eq(seg, ".."), home.up(above), seg <> above)) 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=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 https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/config.bend&name=home.up