where in a for-loop

Here’s the code if you want to experiment with it!

import Foundation

let numbers = [1, 2, 3, 4, 5]

for number in numbers where number.isMultiple(of: 2) {
    print(number)
}
Previous
Previous

Array vs some Collection

Next
Next

dump() vs print()