Christopher Grey

21%
Flag icon
Swift provides special type aliases for working with nonspecific types. These aliases are AnyObject and Any. We can use these aliases to define arrays whose elements are of different types, like this: var myArray: [Any] = [1,"Two"]
Mastering Swift 5
Rate this book
Clear rating
Open Preview