SUMMARY

You have seen various applications of immutable, persistent data types in this chapter, small ones and large ones. Some of the approaches derived from immutable data in functional environments are easily usable in C#, others are a bit more complex. More than many other individual disciplines, working with immutable data is something that often shows its strengths only after you’ve tried it out yourself. Fortunately that’s easy to do: Most programmers regularly work with data that doesn’t or can’t change, but they never make the steps to formalize that fact. The next time you find yourself in that situation, consider using the techniques outlined in this chapter and see for yourself.

Get Functional Programming in C#: Classic Programming Techniques for Modern Projects 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.