Created
June 27, 2014 13:08
-
-
Save vasily-kirichenko/0e5d6d787457338d7dd8 to your computer and use it in GitHub Desktop.
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
// before | |
entity.BaseType | |
|> Option.bind (fun bt -> | |
if bt.HasTypeDefinition then Some bt.TypeDefinition | |
else None) | |
// after | |
match entity.BaseType with | |
| Some (TypeWithDefinition def) -> Some def | |
| _ -> None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment