Parse.escaped: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/parse.bend as Parse Lines 686-703 of yaml-for-bend@0.1.1.0/parse.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/parse.bend&start_line=686&end_line=703 import Base # A scalar's text as the YAML test suite writes it: backslashes, breaks # and tabs escaped. def escaped(s: String) -> String: match s: case SNil{}: "" case SCon{c, t}: match c: case '\\': "\\\\" ++ escaped(t) case '\n': "\\n" ++ escaped(t) case '\t': "\\t" ++ escaped(t) case '\r': "\\r" ++ escaped(t) case _: escaped.other(c, escaped(t)) 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=Char 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=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=yaml-for-bend@0.1.1.0/parse.bend&name=escaped.other