Possible Duplicate:
What does => and () => mean in Scala
In Scala, what does the => operator do? For example, in the below case statement:
myVar match
{
case 1 => print(num1 + num2)
}
Is the "operator" just a shorthand way of writing something more verbose?