Swift implementation of "30 Seconds of Code", no affiliation. Define mutable 2D array 2 dimensional array of arrays of Ints var arr = [[Int]]() var arr: [[Int]] = []