F#: Syntax and style
- Pipes
|>for data - Composition
>>for functions - Product and Sum types for data modelling
- Product:
type Person = { name: String; dob: Date } - Sum:
type Gender = Male | Female
- Product:
- Exhaustive pattern matching
match foo with ... - Shorthand pattern matching for tacit
function ... - Lambdas
fun a b c -> ... - Computation expressions for context (e.g. monoid, applicative, monad)
foo { do!; let!; and!; match!; yield; yield!; return; return! }
Published on: 19 Oct 2025