Posts tagged with Discriminated Union

F# Card Game Part 1 - Modeling the Domain

This is the first post in a series where we'll walk through creating the card game Crazy Eights in F#. Playing cards are a fairly well known domain and, despite the name, Crazy Eights is quite easy to understand. In this post we'll walk through modeling the domain. Modeling our

Continue reading...

Understanding Discriminated Unions from Enums

When I started learning F# I had a hard time grokking how and when to use a Discriminated Union (Sum type). I had experience in several paradigms and languages, but had never seen or used this data construct. In this article we'll start with an Enum and then work our

Continue reading...
Proudly published with Ghost