By mswatcher
via lostechies.com
Submitted: May 10 / 03:46
The "big 3" higher-order functions in functional programming are Filter, Map and Reduce. When looking at the new C# 3.0 LINQ query operators, we find that all three have equivalents:
* Filter = Where
* Map = Select
* Reduce = Aggregate
Whenever you find yourself needing one of these three higher-order functions, just translate them into the correct query operator. "Select" doesn't have the same dictionary meaning as "Map", but the signature is exactly the same.
Add your comment