def escape

emerging-ezjson@1.3.0.0 · src/print.bend:58

import emerging-ezjson@1.3.0.0/src/print.bend as Print
import 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)

Uses (5)

Used by (1)