Learn F#, the functional-first .NET language: printing, immutable values, pattern matching, recursion, lists and maps, ending with a small receipt program.
8 lessons, 16 exercises. Runs F# .NET 10.
Not started
Hello, output
Print text with printfn and printf, write comments, and see how an F# program runs from top to bottom.
Values and variables
Bind names to values with let, meet F#'s basic types, and learn why values are immutable by default.
Reading input and arithmetic
Read lines from standard input, convert text to numbers, and calculate with integer and float operators.
Making decisions
Choose between values with if/then/else and match expressions, using comparison and boolean operators.
Loops and recursion
Repeat work with for and while loops, and the functional way, with recursive functions that stop when they are done.
Functions
Define functions with parameters and return values, read their types, and keep helpers local with scope.
Lists and maps
Keep many values in lists, transform them with map, filter and fold, and look things up by key with Map.
Strings and a small project
Slice, split, join and format strings, then combine everything so far into a receipt printer.
Your progress is saved in this browser. Sign in to keep it on every device.