Imports.comments: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/imports.bend as Imports Lines 52-61 of bend-lint-rules@0.2.0.0/layout/imports.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/imports.bend&start_line=52&end_line=61 import Base import bend-lint-api@0.2.0.0/shared/strings.bend as Strings # The comment lines of `s`, a run of whole lines, each with its newline; blank lines dropped. `line` is the current # line, last character first; `acc` the lines so far, last first. def comments(s: String, line: String, acc: List<&2, String>) -> String: match s: case SNil{}: Strings.onto(kept(String.reverse(line)) <> acc, "") case SCon{'\n', rest}: comments(rest, "", kept(String.reverse(line)) <> acc) case SCon{c, rest}: comments(rest, SCon{c, line}, acc) Uses (10): 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=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 https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/strings.bend&name=onto https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/imports.bend&name=kept