Skip to content

Instantly share code, notes, and snippets.

@MelbourneDeveloper
Last active October 17, 2020 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MelbourneDeveloper/80a5af60b30d00ab3815e3023b0e87bc to your computer and use it in GitHub Desktop.
Save MelbourneDeveloper/80a5af60b30d00ab3815e3023b0e87bc to your computer and use it in GitHub Desktop.
F# Shape Discriminated Union
type Shape =
| Rectangle of width : float * length : float
| Circle of radius : float
| Prism of width : float * float * height : float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment