Swift DailyDay #12There are 5+ ways to write a loop in Swift 1 2 3 4 5 6 7 8 9 10 11 12 13 for i in 1…3 { } //range for i in collection { } //over a collection for i in stride(…) { } //striding while () { } //while repeat { } while () //Same thing, but condition is after body. //Higher order solutions .forEach {} .map {} CopyOriginally published 04/14/2021 https://pittcsc.org/, republished 09/08/2022.