Dart – Emulating F#’s Discriminated Union (i.e. an algebraic data type)
Algebraic Data Type An algebraic data type is a basically a composite type that is formed by combining other types, sometimes also referred to as “sums-and-products” data structures (don’t worries if this is too abstract for you, examples are coming). A simple example would be a composite type that represents a binary tree that has: …
Dart – Emulating F#’s Discriminated Union (i.e. an algebraic data type) Read More »