I'm trying to create an array of tuples in Swift, but having great difficulty:
var fun: (num1: Int, num2: Int)[] = (num1: Int, num2: Int)[]()
The above causes a compiler error.
Why's that wrong? The following works correctly:
var foo: Int[] = Int[]()