init with an array of objects parameter swi code example
Example: swift initialize array with size
let myArraySize: Int = 42
let myArray: [Int] = [Int](repeating: 0, count: myArraySize)
let myArraySize: Int = 42
let myArray: [Int] = [Int](repeating: 0, count: myArraySize)