3 Functional data structures and immutability

This chapter covers

  • Building parallel applications with functional data structures
  • Using immutability for high-performant, lock-free code
  • Implementing parallel patterns with functional recursion
  • Implementing immutable objects in C# and F#
  • Working with tree data structures

Data comes in a multitude of forms. Consequently, it’s not surprising that many computer programs are organized around two primary constraints: data and data manipulation. Functional programming fits well into this world because, to a large extent, this programming paradigm is about data transformation. Functional transformations allow you to alter a set of structured data from its original form into another form without having ...

Get Concurrency in .NET 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.