O'Reilly logo

Real-World Functional Programming with Examples in F# and C# by Jon Skeet, Tomas Petricek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Meet tuples, lists, and functions in F# and C#

This chapter covers

  • Declaring functions and values
  • Working with immutable tuples and lists
  • Processing lists using recursion
  • Parameterizing processing functions

In chapter 2, we explored the most important concepts of functional programming, but we did this from a high-level perspective. We haven’t shown you any real functional code, aside from quick examples to demonstrate our ideas. Our goal so far has been to illustrate how concepts relate to one another and how the result is a very different approach to programming.

In this chapter you’ll finally get to write functional F# code, but we’ll focus on examples that can be nicely explained and demonstrated using C#. We won’t yet delve ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required