Swift: Creating array with default value

We can create array with default values in Swift using the following initializer.  Array(repeating: 3, count: 3)

 

Leave a Reply

%d bloggers like this: