Language
Version: 4
Categories
-
User Program Communication
-
Variables
-
Control Flow
-
Functions
-
Object Oriented Programming
Search Results
Searching for: Collect in Swift
For In Loop
Language: Swift
The for-in loop iterates through every element in a collection (array, set, or dictionary) without specifying size. It behaves like a for each in other languages. The C-style for loop is now deprecated in Swift. To emulate the C-style for loop, use a range as the collection.