Let’s say you have an array of
You use this array of users to build a
TableView and the user can reorder the list.
To remove a customer from the array without any possibility of encountering
Out of Bounds (which of course will cause the App to crash) you need to safely remove items without knowing the index.
I think this is a clever and (and Swifty!) way to write this.