Techniques from Functional Programming
In the following sections, I would like to explore some more of the functional programming con-
cepts that are prevalent throughout the new features in C# 3.0. As you’ll soon see, some problems
are solved with clever use of delegates created from lambda expressions to add the proverbial extra
level of indirection. I’ll also show how you can replace many uses of the imperative programming
style constructs such as for loops and foreach loops using a more functional style.
Custom Standard Query Operators and Lazy Evaluation
In this section, I will revisit an example introduced in Chapter 14, where I showed how to imple-
ment a Lisp-style forward-linked list along with some extension methods to perform on that list. ...