- Mastering macOS Programming
- Stuart Grimshaw
- 63字
- 2025-04-04 19:10:24
Loops
Swift's looping statements are a pretty advanced set of features, producing code more elegant than the somewhat clunky for (int i=0: i < aLimit: i++) {...} of most C-based syntaxes.
That (int i=0: i < aLimit: i++) loop syntax, by the way, is no longer available in Swift; but it once was, so once again, beware of older posts on the Web.