Programming in Swift - Part 28: Part 4: Collections: | Ray Wenderlich

Learn how to use arrays in Swift to store an ordered list of values.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3535-programming-in-swift/lessons/28

This topic was automatically closed after 166 days. New replies are no longer allowed.

It looks like with new versions of Swift the explicit declaration of an Array type is now let evenNumbers: [Int] = [2, 4, 6, 8] just in case someone runs into issues.