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