Код: Выделить всё
extension Array where Element: Comparable {
var biggerOfPairs: [Element] {
// var safely: [Element] = []
// if self.count % 2 == 1 { safely.append(Element.min) }
// var result: [Element] = []
// for i in 0..
Подробнее здесь: [url]https://stackoverflow.com/questions/79670693/i-was-disappointed-to-discover-comparable-seems-to-have-no-min-call-is-that-co[/url]