def hex.trim

bend-kit-http@0.38.5.0 · http.bend:5375

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

5375def hex.trim(+s: String) -> String:
5376  match s:
5377    case SNil{}:
5378      SNil{}
5379    case SCon{Chr{+c}, +t}:
5380      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)