For-In Loops in Swift

For-In loops are used to iterate over a sequence such as elements of array, dictionary and range values. While iterating over dictionary, the key:value pairs are not orderly displayed as they are not arranged in one specific sequence.

Example:

Leave a Reply