Created
November 16, 2015 18:16
-
-
Save gsg/7b2a732570f2a1e11a28 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
type (_, _) t = | |
| Default : ('a, 'a) t | |
| Given : ('a, 'b) t | |
let test : type a b . (a, b) t -> (a -> b) -> a -> b = | |
fun m f arg -> | |
match m with | |
| Default -> f arg | |
| Given -> f arg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment