def hex.trim

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

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

5383def hex.trim(+s: String) -> String:
5384  match s:
5385    case SNil{}:
5386      SNil{}
5387    case SCon{Chr{+c}, +t}:
5388      Bool.pick(String, Bool.and(U32.is_eq(c, 48), Bool.not(String.is_empty(t))), hex.trim(t), SCon{Chr{c}, t})

Uses (7)

Used by (1)