Scan.lf: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/scan.bend as Scan Lines 245-260 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=245&end_line=260 import Base # Line breaks as "\n": "\r\n" and a lone "\r" both become one, as YAML reads # them. def lf(s: String) -> String: match s: case SNil{}: SNil{} case SCon{c, t}: match c: case '\r': match t: case SCon{'\n', u}: SCon{'\n', lf(u)} case _: SCon{'\n', lf(t)} case _: SCon{c, lf(t)} Uses (6): 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=String 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