Created
November 9, 2011 19:23
-
-
Save joshcough/1352619 to your computer and use it in GitHub Desktop.
box
This file contains hidden or 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
> let f<'a>(a:'a) = match box a with | :? string as s -> s | _ -> "hi";; | |
val f : 'a -> string | |
> f(1);; | |
val it : string = "hi" | |
> f("hello") | |
;; | |
val it : string = "hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment