7 Working with collections

This chapter covers

  • Higher-order functions
  • Functional collection pipelines
  • F# Collections
  • Aggregations

Until now, we’ve only really looked at individual items of data, also known as scalars. This chapter looks at how we work with multiple items of data at once. We do this all the time (e.g., working with a list of orders or customers, etc.). Collections are especially important in F# and functional programming languages in general because a lot of what we do involves thinking of things in terms of data transformations.

7.1 Higher-order functions

Before we dive into collections, there’s a prerequisite to understanding them known as higher-order functions (HOFs), which are one of the ways you compose code in F# (there ...

Get F# in Action 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.