CHAPTER 3

image

Introducing Functional Programming

F#’s effectiveness rests on the tried and tested foundation of functional programming. This chapter will cover the core building blocks of functional programming with F#, including simple types and function values, pattern matching, lists, and options. Chapters 4 through 6 will cover imperative programming, generics, and object-oriented programming, and Chapters 8, 9, and 10 will cover more advanced topics in functional programming with text, sequences, and structured and numeric data.

Starting with Numbers and Strings

We will first cover the most common base types of data manipulated in F# code, beginning ...

Get Expert F# 4.0, Fourth 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.