Append to array inside in statement Swift 3 : I am trying to append to an array inside an in statement,
I already declared the array outside of the in statement `var AnArray = [String]()` But when I try to append to the array inside an in statement: `self.AnArray.append("hello")` and then print it outside of the in statement, `print (AnArray)`.However, when I print the array inside the in statement, it is able to append. How can I solve this? Thanks!