Advertisement
Guest User

Untitled

a guest
Jan 9th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.23 KB | None | 0 0
  1.   type ComparableBox(value) =
  2.     member __.Value = value
  3.  
  4.     interface System.IComparable with
  5.       member __.CompareTo y =
  6.         match y with
  7.         | :? 'T as y -> compare value y
  8.        | _ -> failwith "could not compare"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement