Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Functional Programming with C#
  • Table Of Contents Toc
  • Feedback & Rating feedback
Functional Programming with C#

Functional Programming with C#

By : Alex Yagur
close
close
Functional Programming with C#

Functional Programming with C#

By: Alex Yagur

Overview of this book

In an era where software complexity is increasing by the day, functional programming offers a paradigm that simplifies code maintenance and enhances reliability. Functional Programming with C# takes you on an exhaustive journey into functional programming within C#. The book familiarizes you with the core principles and benefits of functional programming, juxtaposing it with imperative and object-oriented paradigms. You’ll get to grips with the functional features of C# and learn to write expressive, modular code through expressions, pure functions, and higher-order functions. As you advance, you’ll explore advanced concepts such as error handling and asynchronous programming, which will equip you with the practical skills that you need to tackle real-world challenges. By comparing functional programming in C# with other languages and providing additional resources, this book ensures that you’re well-equipped to continue your journey toward mastery in functional programming. By the end of this book, you’ll have gained a thorough understanding of functional programming techniques, such as recursion, memoization, and composition, empowering you to write robust, maintainable code.
Table of Contents (18 chapters)
close
close
Free Chapter
1
Part 1:Foundations of Functional Programming in C#
6
Part 2:Advanced Functional Techniques
10
Part 3:Practical Functional Programming
14
Part 4:Conclusion and Future Directions

Summary

As we conclude this chapter on higher-order functions and delegates in the context of functional programming in C#, let’s pause to reflect on the key concepts we’ve delved into and anticipate what’s next on our journey:

  • Higher-order functions: These functions, capable of receiving other functions as parameters or returning them, are foundational in promoting code reusability, abstraction, and a more declarative coding style. Their versatility enhances the expressiveness of our code, allowing us to write more with less.
  • Delegates, actions, funcs, and predicates: Our exploration of these pivotal functional programming constructs revealed their unique roles and differences. We saw how they contribute to crafting versatile and reliable code, each playing a specific part in the broader functional paradigm.
  • Delegates for callbacks, events, and anonymous methods: Delegates are the backbone of creating callbacks, managing events, and defining anonymous...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY