Swift: String literals, String mutability
String Literals String literals in Swift are sequences of characters enclosed in double quotation marks ("). They can be used to represent text, code, or other types of data. String literals can be created in a variety of ways. The most common way is to simply type the string between double quotation marks. For example, the following code snippet creates a string literal: let myStringLiteral = "Hello, world!" String literals can also be created using escape sequences. Escape sequences are used to represent special characters, such as newlines and tabs. For example, the following code snippet creates a string literal that contains a newline character: let myStringLiteral = "This is a string literal that contains a newline character: \n" String literals can also be created using multiline strings. Multiline strings are sequences of characters enclosed in three double quotation marks ("""). They can be used to represent text that spans mult