def escape
import emerging-ezjson@1.3.0.0/src/print.bend as Printimport Base
58# the chars of a string with quotes, backslashes, and controls escaped
59def escape(cs: List<&2, Char>) -> String:
60 match cs:
61 case Nil{}:
62 ""
63 case Con{c, t}:
64 escape.char(c) ++ escape(t)