O'Reilly logo

Mastering F# by Suhaib Fahad, Alfonso García-Caro Núñez

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 3. Data Structures in F#

We have seen different ways to perform functional programming with F#. In this chapter, we will cover the following data structures and writing custom data structures in a more concise and readable way:

  • F# Collections
  • Seq, Array, List, Map, Set
  • yield keyword
  • Advanced data structures
  • Stacks
  • Queues
  • Binary search trees
  • Red-black tree

This chapter just helps you understand how to use the available data structures in F# and write some basic custom data structures. As a developer, it will help you think more in functional aspects inclined towards type safety, immutability, and other areas that you learned in the previous chapters.

F# Collections

F# core library has a set of collections and wrapper functional style modules that ...

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