I'm trying to extend the array class writing a simple function that will receive a function as parameter and will use that to filter the current array.
In this example "self" is actually an array.
this is what I used so far:
func applyFilter(filterFunction: (String) -> Bool) {
self.filter(filterFunction)
}
But I'm receiving this error from xCode:
Any ideas?

filterfunction