def drop_cr.go

bend-kit-http@0.38.2.0 · http.bend:156

import bend-kit-http@0.38.2.0/http.bend as Http
import 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)}

Uses (4)

Used by (1)