I am unable to return an array from a function call in Swift.
The script is a little bit longer now and little complicated as well, but this is basically what the output from within the function would look like:
func getRecentUpdates()
{
var updates = [("test", "hello"),("nice", "one")]
println(updates)
return updates
}
println displays the array in the console but with the return, an error says NSArray() is not convertible to ()
->to indicate the return value of a function!