Programming in Swift: Fundamentals, Episode 18: While Loops |

Learn how to make Swift repeat your code multiple times with while loops, repeat while loops, and break statements.

This is a companion discussion topic for the original entry at

At time 1:18, Chris mentions that the short variable ‘I’ comes from ‘index’. As a minor nit, this is not quite correct. The convention of i, j, k as index variables from way, way back in early fortran days when variables starting I to N were implicitly integers and all others were REAL. This may go back all the way to 1957 when FORTRAN was first used. Most people using the languages that came later such as C, Algol, etc. were already used to the convention and continued to use it by habit.