Created
October 29, 2013 13:15
-
-
Save eiriktsarpalis/7214437 to your computer and use it in GitHub Desktop.
My favorite new feature in F# 3.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Foo = | |
| A of value : int | |
| B of enabled : bool * somethingElse : bool | |
match B (false, false) with | |
| B(enabled = true) -> true | |
| B(somethingElse = x) -> x | |
| _ -> false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment