CanonImportPath.segments.go: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/canon_import_path.bend as CanonImportPath Lines 23-29 of bend-lint-rules@0.2.0.0/layout/canon_import_path.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&start_line=23&end_line=29 import Base # A path's segments, last first: "" and "." dropped, ".." applied. def segments.go(parts: List<&2, String>, acc: List<&2, String>) -> List<&2, String>: match parts: case Nil{}: acc case Con{p, rest}: segments.go(rest, segments.step(p, acc)) Uses (3): 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=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&name=segments.step