The "Understanding F# types" series
F# is not just about functions; the powerful type system is another key ingredient. And just as with functions, understanding the type system is critical to being fluent and comfortable in the language.
In addition to the common .NET types. F# has some other types that are very common in functional languages but not available in imperative languages like C# or Java.
This series introduces these types and how to use them.
-
1. Understanding F# types: Introduction
A new world of types -
2. Overview of types in F#
A look at the big picture -
3. Type abbreviations
Also known as aliases -
4. Tuples
Multiplying types together -
5. Records
Extending tuples with labels -
6. Discriminated Unions
Adding types together -
7. The Option type
And why it is not null or nullable -
8. Enum types
Not the same as a union type -
10. Built-in .NET types
Ints, strings, bools, etc -
11. Units of measure
Type safety for numerics -
12. Understanding type inference
Behind the magic curtain