I'm trying to upload an array with the following code, but I am getting an error on the second to last line which says Cannot assign to value: function call returns immutable array
for object in objects! {
let newstring = NSString(format: ".0f", self.slider.value)
var newarray = [object.objectForKey("times")]
newarray.append(newstring)
object.objectForKey("times") = newarray
object.saveInBackground()
}
"times" is of type array in parse by the way.