Http.drop_cr.go: def of bend-kit-http@0.38.2.0 Import: import bend-kit-http@0.38.2.0/http.bend as Http Lines 156-162 of bend-kit-http@0.38.2.0/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http@0.38.2.0/http.bend&start_line=156&end_line=162 import Base # prev is the char before s; it is kept unless it is a final CR. def drop_cr.go(s: String, prev: U32) -> String: match s: case SNil{}: drop_cr.last(prev) case SCon{Chr{c}, t}: SCon{Chr{prev}, drop_cr.go(t, c)} Uses (4): 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=bend-kit-http@0.38.2.0/http.bend&name=drop_cr.last