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 O’Reilly online learning.

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