Swift Humor

I don’t get loops using Swift because they are for-in <groan>

//Leap year in the next 50 years
for i in 2021…2051 where i % 4 == 0 {
print(i)
}

There will be seven leap years.

By DuaneGallaher

Musician, bicycle mechanic, eBike enthusiast, former mainframe developer becoming web developer, all around curious person with passion for solving problems.

Leave a Reply