Thursday, 28 May 2009

Comparable anonymous types

Defining a function that takes an Anonymous type that can be compared.

Here we have 't' of type 'U' that can be '<' or '>'

def addValue[U > : T < % Ordered[U]](t: U) =

No comments:

Post a comment