The Book of F#

Where To Buy

The Book of F# is available in both print and electronic formats.
ISBN: 978-1-59327-552-5


“The Book of F#” has turned into my #FSharp desk reference. I think it’s a must have for those interested in the language.
Jeremy Abbott (Source)

I’m changing the book I recommend to C# devs wanting to learn F# to [The Book of F#].
Ian Russell (Source)

I feel confident in adding F# to any of my pre-existing C# projects right away.
Danny Warren (Full Review)

If you are just beginning to explore F#, this is the book for you.
Ryan Riley (Full Review)

I can assure you that the contents are good and that I’ll be using this book daily when I start my next project with F#.
Luis Abreu (Full Review)

I recommend buying this book if you want to get a better grasp of F#, the language, or if you are working with teaching object oriented programmers to be more functional.
Henrik Feldt (Full Review)

It deserves the five stars and that is what the book gets from me.
Geert Van Laethem (Full Review)

Overall, a well worthwhile read for the experienced C# developer looking to learn F#.
Richard Minerich (Full Review)

The Book of F# will be very useful for developers who wish to learn the concepts associated with F# and can also be used as a ready reference guide.
Anand Narayanaswamy (Full Review)

The Book of F#
Free your mind
Free your code


If you’re a traditional .NET developer used to C# and Visual Basic, discovering F# will be a revelation that will change how you code, and how you think about coding. F# brings the power of functional-first programming to the .NET Framework, a platform for developing software in the Microsoft Windows ecosystem and beyond.

In The Book of F#, Microsoft MVP Dave Fancher shares his expertise and teaches you how to wield the power of F# to write succinct, reliable, and predictable code. As you learn to take advantage of features like default immutability, pipelining, type inference, and pattern matching, you’ll be amazed at how efficient and elegant your code can be.

You’ll also learn how to:

  • Exploit F#’s functional nature using currying, partial application, and delegation
  • Streamline type creation and safety with record types and discriminated unions
  • Use collection types and modules to handle data sets more effectively
  • Use pattern matching to decompose complex types and branch your code within a single expression
  • Make your software more responsive with parallel programming and asynchronous workflows
  • Harness object orientation to develop rich frameworks and interact with code written in other .NET languages
  • Use query expressions and type providers to access and manipulate data sets from disparate sources

Break free of that old school of programming. The Book of F# will show you how to unleash the expressiveness of F# to create smarter, leaner code.


  1. All Sample Code (ZIP)
  2. Chapter 5: Let’s Get Functional (PDF)
  3. Detailed Table of Contents (PDF)
  4. Book Index (PDF)

Table of Contents

  1. Foreword (by Bryan Hunter)
  2. Preface
  3. Acknowledgements
  4. Introduction
  5. Chapter 1: Meet F#
  6. Chapter 2: F# Interactive
  7. Chapter 3: Fundamentals
  8. Chapter 4: Staying Objective
  9. Chapter 5: Let’s Get Functional (PDF)
  10. Chapter 6: Going to Collections
  11. Chapter 7: Patterns, Patterns, Everywhere
  12. Chapter 8: Measuring Up
  13. Chapter 9: Can I Quote You on That?
  14. Chapter 10: Data Access
  15. Chapter 11: Asynchronous and Parallel Programming
  16. Chapter 12: Compute This!