O'Reilly logo

Get Programming with F#: A guide for .NET developers by Isaac Abraham

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

Lesson 6. Working with immutable data

Working with immutable data is one of the more difficult aspects of functional programming to deal with, but as it turns out, after you get over the initial hurdle, you’ll be surprised just how easy it is to write entire applications working with purely immutable data structures. It also goes hand in hand with many other F# features you’ll see, such as expression-based development. In this lesson, you’ll learn

  • The basic syntax for working with immutable and mutable data in F#
  • Some reasons you should consider immutability by default in software development today
  • Simple examples of working with immutable values to manage changing state

6.1. Working with mutable data—a recap

Let’s start by thinking about ...

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