The only thing that sets functional programming aside from other methods of programming is that functions do not modify data or state. You will use functional programming in scenarios such as deep learning, machine learning, and artificial intelligence when it is necessary to perform different sets of operations on the same set of data.
The LINQ syntax within .NET Framework is an example of functional programming. So, if you are wondering what functional programming looks like, and if you have used LINQ before, then you have been subjected to functional programming and should know what it looks like.
Since functional programming is a deep subject and many books, courses, and videos exist on this topic, we will only touch on the topic briefly in this chapter by looking at pure functions and immutable data.
A pure function is restricted to only operating on the data that is passed into it. As a result, the method is predictable...