For-in loop in swift

By | July 18, 2016

For-in loop in swift

You use forin to iterate over items in a dictionary by providing a pair of names to use for each key-value pair. Dictionaries are an unordered collection, so their keys and values are iterated over in an arbitrary order.