Sse.unr: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/sse.bend as Sse Lines 21-28 of ezmcp@0.1.0.0/src/sse.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/sse.bend&start_line=21&end_line=28 import Base # a line's text with one `\r` at its end dropped def unr(text: String) -> String: match text: case SNil{}: SNil{} case SCon{+head, +tail}: unr.at(head, _u => unr(tail), Bool.and(Char.is_eq(head, '\r'), String.is_empty(tail))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/sse.bend&name=unr.at