pinkstone.co.uk
Swift: How to iterate through all elements in an Array, Set or Dictionary
Looping through all elements in Arrays, Sets and Dictionaries is fairly straightforward in Swift: we can use Fast Enumeration using a for-in loop. Here are three quick examples to demonstrate this.…