def blank_end.go

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

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

Uses (9)

Used by (1)