Chapter 12. Strings

Table of Contents

String Semantics
String Literal Values
String Operations
String Comparison Operations
String Built-in Functions
String Methods
String Modules
String Exercises
Digression on Immutability of 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.