Declaring functions two ways. What is the distinction?
- by Synesso
Are these two function declarations effectively different?
If not, why do they have different toString values?
scala> def f: (Int) => Int = x=> x*x
f: (Int) => Int
scala> def f(x: Int) = x*x
f: (Int)Int