def scan
import emerging-ezhttp@0.21.0.0/src/unescape.bend as Unescapeimport Base
334# a text scanned from where it stands, character by character
335def scan(s: String, st: Scan) -> String:
336 match s:
337 case SNil{}:
338 end(st)
339 case SCon{+c, t}:
340 step(st, c, st2 => scan(t, st2))