This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5994-programming-in-swift/lessons/29
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5994-programming-in-swift/lessons/29
var array:[Any] = [1,2,“Apple”,true]
for i in array
{
print(i)
}
Arrays can store elements of different type.
1 Like