`count(where:)` on Sequence

The review starts tomorrow!

7 Likes

[0,1,2,3,4].count(where: { $0 % 2 == 0}) // Cannot call value of non-function type 'Int'

Was this removed from Swift?

Sadly, this addition had to be reverted shortly after its introduction because it was causing performance issues. :disappointed:

1 Like