Format.text_of.trimmed: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/format.bend as Format Lines 2301-2308 of bend-lint-rules@0.2.0.0/layout/format.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&start_line=2301&end_line=2308 import Base # The rows, last first, joined, without the empty rows at the end, with a # newline. Each row has no trailing whitespace already. def text_of.trimmed(rows: List<&2, String>, +newline: String) -> String: match rows: case Nil{}: newline case Con{row, rest}: join(rest, newline, row ++ newline) Uses (4): 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.append https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=join