title: When to use enumerate for arrays in Swift?
body: <p>I noticed strange things happen when you try to remove or mutate array items in a loop. However, when doing it while calling <code>enumerate()</code> on the array, it works as expected. What is the concept behind it and when should we use <code>enumerate()</code>?</p>