Avatar
let n: Int = 3 var array = [n of Int] みたいのはできないですよね。型表記なので その代わりSwift Macroまたはその他のコードジェネレーターで組めそう (edited)