Avatar
Avatar
kntk
@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)
swift53 BOT 4/6/2024 7:25 AM
var