Chapter 16. Writing Functional Code in C#
C# is predominantly an imperative programming language, which means that it deals primarily with changes in state. However, C# 3.0 is starting to show its functional programming side. Functional programming aims to create code that does not produce any side effects. Many of the previous chapters included functional programming aspects, without calling it functional programming. In this chapter, I am going to put the stake in the ground and explain functional programming.
Chapters 9 and 11 covered .NET generics and lambda expressions in the context of C#. You learned how to use those features to solve problems in an object-oriented manner. In this chapter, you'll learn how to use them to solve problems in ...
Get Beginning C# 2008: From Novice to Professional 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.