Is it possible to extend an generic class for a specialised/constructed generic type? I would like to extend Int Arrays with a method to calculate the sum of its elements.>
Swift 5.x:
extension Array where Element == Int { var sum: Int { reduce(0, +) } }