Skip to content

Instantly share code, notes, and snippets.

@vasilkosturski
vasilkosturski / addValueType.fs
Last active December 15, 2020 20:10
clash-of-styles-add-new-value-types
open System
type Value =
| MyInt of int
| MyRational of int * int
type Expression =
| MyValue of Value
| Addition of Expression * Expression