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.