I want to use an array throughout my view controller so I declare it up top. However, I want populate this array with string elements. There is an easy way to do this with one line. I'm trying not to use a for loop.
var stringArray = [String]()
...
stringArray = Array(reversedWord.characters)
What is is not letting me do is convert Array<_elements> to an array literal.
stringArray = reversedWord.characters.map { String($0) }?var charArray = [Character](), then you will be able to docharArray = Array(reversedWord.characters).