Closed robinlmp closed 3 years ago
This is my first ever pull request so I hope I've done it right. Really sorry if I've messed anything up Paul.
I came across this solution (having been reading Paul's book, Pro Swift) that Unwrap marks as incorrect:
var evens = [Int]()
for i in 1...100 where i % 2 == 0 { evens.append(i) }
I've added that and a variation for 1..<101
Really great job – thank you for contributing!
I'm surprised by how exhilarating this is!
This is my first ever pull request so I hope I've done it right. Really sorry if I've messed anything up Paul.
I came across this solution (having been reading Paul's book, Pro Swift) that Unwrap marks as incorrect:
var evens = [Int]()
for i in 1...100 where i % 2 == 0 { evens.append(i) }
I've added that and a variation for 1..<101