How do I initialize an Array in swift with a specific capacity?
I\'ve tried:
var grid = Array () grid.reserveCapacity(16)
Swift 3 / Swift 4 / Swift 5
var grid : [Square]? grid?.reserveCapacity(16)
I believe it can be achieved in one line as well.