Semantic.last_segment: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/semantic.bend as Semantic Lines 32-40 of bolt@1.27.0.0/src/lsp/semantic.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/semantic.bend&start_line=32&end_line=40 import Base # the last segment of a dotted name def last_segment(cs: List<&2, Char>, +acc: List<&2, Char>) -> List<&2, Char>: match cs: case Nil{}: List.reverse(&2, Char, acc) case Con{'.', t}: last_segment(t, []) case Con{c, t}: last_segment(t, c <> acc) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil