Avatar
@swift-5.3.3 extension Sequence where Element == Int { // var count ... func count( _ predicate: (Int) -> Bool ) -> Int { 0 } } func f(_ a: ((Int) -> Bool) -> Int) { print("func") } func f(_ a: Int) { print("var") } f([1, 2, 3].count)