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) }

Beginner's Guide to Swift