Skip to content

clojure.string/escape

View this page on ClojureDocs

Type: function Added: Clojure 1.2 Examples: 4 Runnable: 3
([s cmap])

Return a new string, using cmap to escape each character ch from s as follows:

If (cmap ch) is nil, append ch to the new string. If (cmap ch) is non-nil, append (str (cmap ch)) instead.

Examples

by jafingerhut on
by educoutinho on . May have evaluation errors.
by bfontaine on
by GSvensk on

Content from the matching ClojureDocs page, with authors credited on each contribution.