Hello, F# World

fsharp
getting-started
My first blog post using F# and Jupyter notebooks
Author

Kurt Mueller

Published

March 29, 2026

Welcome

This is a sample blog post written as a Jupyter notebook using the F# kernel. Let’s start with a simple example.

let greeting = "Hello from F#!"
printfn "%s" greeting
Hello from F#!

F# is a functional-first language that runs on .NET. It’s great for data exploration, scripting, and building robust applications.

Here’s a quick example of pattern matching:

type Shape =
    | Circle of radius: float
    | Rectangle of width: float * height: float

let area shape =
    match shape with
    | Circle radius -> System.Math.PI * radius * radius
    | Rectangle (width, height) -> width * height

let shapes = [ Circle 5.0; Rectangle (3.0, 4.0) ]

shapes
|> List.iter (fun s -> printfn "%A has area %.2f" s (area s))
Circle 5.0 has area 78.54
Rectangle (3.0, 4.0) has area 12.00