Introduction
In Swift, whether you can change a collection depends on how you declare it. This helps keep your data safe and clear.
When you want a list of items that should never change after creation.
When you need to update or add items to a list during your program.
When you want to prevent accidental changes to your data.
When you want to clearly show which collections are fixed and which can change.