i am encountering weird error messages i cannot make sense of when declaring arrays with nil declare values.
I am doing this in Xcode playground.
//this is ok
var threeDoubles = [Double](count: 3, repeatedValue: 0.0)
//error: incorrect argument label in call, have count expected "arrayLiteral"
var threeDoubles2 = [Double](count: 3)
//error: extra argument "repeatedValue" in call
var threeDoubles2 = [Double](count: 3, repeatedValue: nil)