3 ms·
One argument I'd like to use at one point is to explain a for-loop and what it does - intimidating? How about initializing a numerical variable, then creating a
by Cthulhu_ 11y ago
One argument I'd like to use at one point is to explain a for-loop and what it does - intimidating? How about initializing a numerical variable, then creating a loop that checks the value of said variable, increments (or decrements), and in case of array operations, attempts to get an entry in that array in each loop.
Versus for-each-entry-in-list-do-this.
- seivan 11y agoBe pragmatic, there's a higher chance that a developer has used said concept than the FRP mentioned above. Funny you should mention that for loop as it's been removed from Swift 2.2 ;-)