Advertisement
Guest User

Untitled

a guest
Jul 21st, 2011
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.23 KB | None | 0 0
  1. type FuncType<'a, 'b, 'c> = FuncType of ('b -> 'c)
  2.  
  3. let dummy<'a> (x:int) = Unchecked.defaultof<int>
  4.  
  5. let makeFunc (typ:FuncType<'a, 'b, 'c>) =
  6.  let (FuncType f) = typ
  7.  fun (_:'a) -> f
  8.  
  9. let f2 = makeFunc (FuncType(dummy<int>))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement