Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.