def strip.bom
import yaml-for-bend@0.1.1.0/scan.bend as Scanimport 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{}