I want to extend the array type only when its elements is of a specific type. In this case I'm using instances of EKCalendar.
This does not work:
public extension Array where Generator.Element : EKCalendar{
}
But this Does:
public extension CollectionType where Generator.Element : EKCalendar{
}
Why is it I can only do this with a protocol ?