Chapter 12. Sequence expressions and alternative workflows

This chapter covers

  • Processing and generating sequences of values
  • Working with F# sequence expressions
  • Understanding monads and LINQ expressions
  • Implementing F# computation expressions

Before we can start talking about sequence expressions, you must know what a sequence is. This is another F# term that comes from mathematics, where a sequence is an ordered list containing a possibly infinite number of elements. Don’t worry if that all sounds a bit abstract; you’re already familiar with the type that expresses the same idea in .NET: IEnumerable<T>.

The primary reason for having the IEnumerable<T> type in the .NET Framework is it gives us a unified way to work with collections of ...

Get Real-World Functional Programming with Examples in F# and C# now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.