query
On this page

escape

lib.escape

Docs pulled from | This Revision | 21 minutes ago


Escape occurrence of the elements of list in string by prefixing it with a backslash.

Inputs

list

1. Function argument

Type

escape :: [string] -> string -> string

Examples

escape usage example

escape ["(" ")"] "(foo)"
=> "\\(foo\\)"
(lib.strings.escape)

Noogle also knows

Aliases