Possible Duplicate:
Using comparison operators in Scala’s pattern matching system
For below method I receive an error : "'=>' expected but integer literal found."
Is it not possible to check if x is greater than another number and or is there an alternative approach to return "greater than 2" if '> 2' is matched ?
def describe(x: Any) = x match {
case 5 => "five"
case > 2 => "greater than 2"
}