Join Slack
Powered by
`count` is defined for `Iterable`, so it goes thro...
# announcements
o
orangy
03/19/2016, 1:43 PM
count
is defined for
Iterable
, so it goes through iterator linearly and counts items, with an optional predicate. When
Iterable
happens to be a
Collection
known statically, it just calls
size
.
🍻 1
🌟 1
Open in Slack
Previous
Next