© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
V. SarcarIntroducing Functional Programming Using C#https://doi.org/10.1007/978-1-4842-9697-4_3

3. Understanding Immutability

Vaskaran Sarcar1  
(1)
Kuntala Furniture, Kolkata, West Bengal, India
 

Functional programming uses immutability to improve code quality and understandability. Chapter 1 offered a brief overview of immutability, and this chapter will go into depth on this topic. It will also present some case studies.

What Is Immutability?

According to Google, immutability means “unchanging over time” or “unable to be changed.” So, the immutable types are objects (or data structures) that are not changeable. You may ask, does this mean they are not changeable ...

Get Introducing Functional Programming Using C#: Leveraging a New Perspective for OOP Developers 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.