O'Reilly logo
  • MICHAEL MASLENKO thinks this is interesting:

But in this case, an intermediate collection is created to store all the elements that satisfy the predicate

From

Cover of Kotlin in Action

Note

7
when count is better then size