Swift: how to loop through arrays?
Example:
let arr = [1, 2, 3, 4, 5]
Swift offers several ways to loop through arrays.
Solution:
for num in arr { print(num) }
Example: Solution:Swift: how to loop through arrays?
Swift offers several ways to loop through arrays.
let arr = [1, 2, 3, 4, 5]
for num in arr { print(num) }