twostraws / Unwrap

Learn Swift interactively on your iPhone.
https://www.hackingwithswift.com
Other
2.3k stars 312 forks source link

Update FreeCoding.json with new solutions #211

Closed robinlmp closed 3 years ago

robinlmp commented 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

twostraws commented 3 years ago

Really great job – thank you for contributing!

robinlmp commented 3 years ago

I'm surprised by how exhilarating this is!