Chapter 13
Sequences
WHAT’S IN THIS CHAPTER?
- Understanding list comprehensions
- Creating iterators functionally
- Working with ranges
Sequences of data are an important encapsulation of the information computer programs need to do their work. Whether they come from databases or other types of storage, or whether they are calculated, entered, or otherwise retrieved, a programming language needs ways of representing such sequences, passing them around, and reading and manipulating them.