How did you declare your Array
extension? The problem is that your generic functions require arguments of type Equatable
, but when you declared the array, you specified a specific implementation of an Equatable
class, like String
. A T
is not a String
without a cast.