Chapter 12. Strings

We'll look at strings from a number of viewpoints: semantics, literal values, operations, comparison operators, built-in functions, methods and modules. Additionally, we have a digression on the immutability of strings.

String Semantics

A string is an immutable sequence of characters. Since it is a sequence, all of the common operations to sequences apply. We can append strings together, select characters from a string. When we select a slice from a string, we've extracted a substring.