Report.stem: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/report.bend as Report Lines 119-126 of bolt@1.27.0.0/src/lsp/report.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/report.bend&start_line=119&end_line=126 import Base import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy # the text before the first `~`: an instance of a template (`f~1`) is the # template's def stem(ss: String) -> String: match ss: case SNil{}: SNil{} case SCon{+hh, tt}: Lazy.stop(String, Char.is_eq(hh, '~'), SNil{}, _u => SCon{hh, stem(tt)}) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lazy/lazy.bend&name=stop