How do I create an immutable array in Swift?
A superficial reading of the docs would suggest you can just do
let myArray = [1,2,3]
Seems to be a bug and to be fixed soon.
Cited from Apple dev forum:
Question:
Inconsistency with let for Array and Dictionary
Final answer:
This is considered to be a bug, not a feature, and will be fixed in a later Beta. -Chris