I'm trying this
struct Foo<T: Equatable> {
let object: T
}
extension Array where Element == Foo { // this lines give me error tried Foo<T> but didn't work
func updateElement(element: Element) {
// Do the stuff
}
}
And it's giving me error: Reference to generic type 'Foo' requires arguments in <...>
Any way to do this?