Strings
In Gleam strings are written as text surrounded by double quotes, and can span multiple lines and contain unicode characters.
The <> operator can be used to concatenate strings.
Several escape sequences are supported:
\"- double quote\\- backslash\f- form feed\n- newline\r- carriage return\t- tab\u{xxxxxx}- unicode codepoint
The
gleam/string
standard library module contains functions for working with strings.