12
Functional Programming
Functional programming is a powerful paradigm that offers a different approach to writing code by treating computation as the evaluation of mathematical functions. In this chapter, we will explore various aspects of functional programming in C#, showcasing how it can lead to more expressive, modular, and maintainable code.
We are going to cover the following topics:
- Overview of functional programming in C#
- First-class functions and Lambda expressions
- High-order functions
- Immutability and pure functions
- Functional composition
- Option types and the Maybe monad
- Functional error handling
- Functional data transformation and pipeline
- Lazy evaluation
- Pattern matching
- Currying and partial application
- Concurrency and partial ...
Get Clean Code with C# - Second Edition 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.