How to create an array in Swift 4 with a default value?

Syntax: Array(repeating: 35.0, count: 5) We can create an array with default values using the above syntax.   Advertisements

Advertisements