From the course: Advanced C#: Functional Programming Patterns

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Higher order functions

Higher order functions

- [Instructor] The real power of using functions in functional programming is when you start working with delegates and lambda expressions and you'll use them in higher order functions. Now a higher order function is one that takes a function as a parameter and this allows us to build really flexible systems and the classic place where you can see this in C sharp and .NET is in link, the library that lets you query lists of data through the IEnumerable interface. So if you want to know a great library to look at to see how it to write your own functional code, link is the place to go. And think about the way link works. There is a where method that is used to filter down a list of items. And the flexibility is there because as programmers, we can write a lambda expression, parse that lambda expression in to the where method and where uses our code to determine what belongs in the output of the where. So I've tried to mimic…

Contents