for each syntax swift code example Example: foreach swift let numbers = [1, 2, 3, 4, 5] for number in numbers { print(number) }