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.

Get Functional Programming in C#: Classic Programming Techniques for Modern Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.