Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Elements of code such as language keywords, operators, expressions and value names are shown as follows: "In order to define recursive function let binding can be extended with modifier rec", "Literal "$42" is bound to value total"

A block of code is set as follows:

type OrderType = Sale | Refund
type Transaction = Transaction of OrderType * decimal

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

// Imperative monolithic solution a-la C/C++

#load "HugeNumber.fs"

let number = hugeNumber.ToCharArray() ...

Get F# 4.0 Design Patterns 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.