Scan.chomped: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/scan.bend as Scan Lines 1080-1088 of yaml-for-bend@0.1.1.0/scan.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/scan.bend&start_line=1080&end_line=1088 import Base # The final line break and the blank lines after the text. def chomped(chomp: Chomp, +acc: String, +lead: Bool, +brks: Nat) -> String: match chomp: case Clip{}: Bool.pick(String, lead, SCon{'\n', acc}, acc) case Strip{}: acc case Keep{}: String.repeat("\n", brks) ++ Bool.pick(String, lead, SCon{'\n', acc}, acc) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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=Base/base.bend&name=String.repeat https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/scan.bend&name=Chomp