Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created November 19, 2012 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adilakhter/4114606 to your computer and use it in GitHub Desktop.
Save adilakhter/4114606 to your computer and use it in GitHub Desktop.
generics
// '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