def squash
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4import Base
191def squash(s: String, sp: Bool) -> String:
192 match s:
193 case SNil{}:
194 SNil{}
195 case SCon{Chr{+c}, t}:
196 squash.if(U32.is_eq(c, 32), sp, c, squash(t, U32.is_eq(c, 32)))