I try to do smth like this:
let myArray: [[MyClass]] = [5,5]
where [5,5] is size of array. I can\'t do this.
To add to the accepted answer, in Swift 3, the syntax is slightly different:
var arr = [[Int]](repeating: [Int](repeating: 0, count: 5), count: 5)
Note the order of arguments and repeating instead of repeatedValue.
repeating
repeatedValue