def blank_end.go
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
171# w holds the last four octets; a char past 255 clears it.
172def blank_end.go(s: String, w: U32) -> Bool:
173 match s:
174 case SNil{}:
175 U32.is_eq(w, 218762506)
176 case SCon{Chr{+c}, t}:
177 blank_end.go(t, Bool.pick(U32, U32.is_lt(c, 256), (w * 256 + c : U32), 0))