O'Reilly logo

Real-World Functional Programming with Examples in F# and C# by Jon Skeet, Tomas Petricek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required