how can I pick words from a paragraph and process one by one. I want to switch places of letters except first and last letter. How can I? Thanks
var fullInputArray = []
func convertToArray(){
let fullInput = inputBox.text
fullInputArray = fullInput.componentsSeparatedByString(" ")
println("\(fullInputArray)") //prints [hello, world, this, is, an, app]
}
func processWords(){
var processedArray: [String] = //something functional code like fullInputArray.mix
println("\(processedArray)") //prints [hlleo, wlord, tihs, is, an, app]
}