`count(where:)` on Sequence

The review starts tomorrow!

6 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:

Terms of Service

Privacy Policy

Cookie Policy