def strip.bom

yaml-for-bend@0.1.1.0 · scan.bend:262

import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base

262def strip.bom(s: String) -> String:
263  match s:
264    case SCon{c, +t}:
265      match c:
266        case Chr{+x}:
267          Bool.pick(String, U32.is_eq(x, 65279), t, SCon{Chr{x}, t})
268    case SNil{}:
269      SNil{}

Uses (4)

Used by (1)