Programming in Swift: Fundamentals, Episode 18: While Loops | raywenderlich.com

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 https://www.raywenderlich.com/28092971-programming-in-swift-fundamentals/lessons/18

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.