Post

Replies

Boosts

Views

Activity

Guided Project-Apple Pie: How to use map method in place of loop?
I’m going through Develop in Swift Fundamentals and I’m stuck at a problem where it says “Learn about the map method, and use it in place of the loop that converts the array of characters to an array of strings in updateUI().” Here’s the code:  var letters = [String]() for letter in currentGame.formattedWord { letters.append(String(letter)) } Thanks in advance.
1
0
1.1k
Apr ’21