Login
From:
Nil Coalescing
(Uncensored)
subscribe
Count the number of objects that pass a test in Swift using count(where:)
https://nilcoalescing.com/blog/CountTheNumberOfObjectsThatPassATestInSwift
links
backlinks
Roast topics
Find topics
Find it!
Efficiently count the number of elements in a sequence that satisfy the given condition with the new count(where:) method introduced in Swift 6.