I have read some threads about this but here is my question. I use beta 3.
func foo1(x: Int) -> Int { ... }
func foo2(x: Int, y: Double) -> Double { ... }
func foo3() -> Int { ... }
If I ask for the dynamicType of these functions, I get :
foo1: (Int) -> Int
foo2: ((Int,Double)) -> Double
foo3: (()) -> Int
I don't understand why those extra parentheses in the lhs of the types !?
The type of foo1 seems to say that the only parameter is an Int, and in the same vein
the type of foo2 should say by coherence that foo2 waits for a tuple (Int,Double).
Moreover I have read that (Int) == Int. So what ?
Thanks.