Pdb.tlines_go: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/pdb.bend as Pdb Lines 29-38 of bend-prot@0.1.0.0/pdb.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/pdb.bend&start_line=29&end_line=38 import Base # Tail-recursive lines(): single self-call in tail position, so long files # do not grow the machine stack (String.split recurses per character). def tlines_go(s: String, cur: String, acc: List<&2, String>) -> List<&2, String>: match s: case SNil{}: List.reverse(&2, String, String.reverse(cur) <> acc) case SCon{'\n', t}: tlines_go(t, SNil{}, String.reverse(cur) <> acc) case SCon{h, t}: tlines_go(t, SCon{h, cur}, acc) Uses (9): 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.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