twostraws / Unwrap

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

FreeCoding hint says: `isMultiple(of:)`, but it's not listed in the answers #216

Closed duianto closed 3 years ago

duianto commented 3 years ago

In the FreeCoding exercise:

"Write code that loops from 1 through 100 to create an array of all even numbers."

https://github.com/twostraws/Unwrap/blob/7344eeb6bef109d2710dd12dcadefc8f4fd9b236/Unwrap/Activities/Practice/FreeCoding/FreeCoding.json#L243

The hint says that one can use: isMultiple(of:)

"You'll need to use the division remainder operator, %, or the isMultiple(of:) method."

but isMultiple is not listed in the answers: https://github.com/twostraws/Unwrap/blob/7344eeb6bef109d2710dd12dcadefc8f4fd9b236/Unwrap/Activities/Practice/FreeCoding/FreeCoding.json#L247

Note

This seems like it could be a problem, but I haven't tested if isMultiple is accepted.

Because the question had already been answered correctly using % while making a screen recording for another issue. FreeCoding: All items capitalized. A working solution is not accepted. #214

Environment

Carrione commented 3 years ago

The issue can be closed.