Created
November 19, 2012 22:48
-
-
Save adilakhter/4114606 to your computer and use it in GitHub Desktop.
generics
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
// 'a is f#'s way of indicating a generic type that is not known at compile time | |
let f x = x.ToString() + " string" //val x: 'a -> string | |
let f x y = x.ToString() + "" + y.TString(); // val f: 'a -> 'b -> string | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment