def trim
import emerging-ezjson@1.3.0.0/src/fixed.bend as Fixedimport Base
268# an integer part with its leading 0s dropped; no digit is 0
269def trim(int: String) -> String:
270 match int:
271 case SNil{}:
272 "0"
273 case SCon{+hd, +tl}:
274 trim.at(Char.is_eq(hd, '0'), hd, tl, _u => trim(tl))