def drop_cr.go
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
156# prev is the char before s; it is kept unless it is a final CR.
157def drop_cr.go(s: String, prev: U32) -> String:
158 match s:
159 case SNil{}:
160 drop_cr.last(prev)
161 case SCon{Chr{c}, t}:
162 SCon{Chr{prev}, drop_cr.go(t, c)}