Im learning Swift and I can understand how to create a simple function that takes in an Array and returns an Array. Heres my code:
func myArrayFunc(inputArray:Array) -> Array{
var newArray = inputArray
// do stuff with newArray
return newArray
}
The red error I get is: Reference to generic type 'Array" requires arguments in <>