The previous chapter (Chapter 8, Concurrent Programming in .NET Core) introduced concurrent programming in .NET Core, and the aim of the chapter was to take advantage of async/await and parallelism, to make our program more performant.
In this chapter, we will get a taste of functional programming, using the C# language. We will also dive deeper into the concepts that show you how to leverage C# in .NET Core to perform functional programming. The aim of this chapter is to help you understand what functional programming is and how we can use it using the C# language.
Functional programming was inspired by mathematics, and it solves problems in a functional way. In mathematics, we have formulas and, in functional programming, we use math in the form of various functions. The best part of functional programming is that it helps to implement concurrency...