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

But note that this code repeats the process of finding the maximum age for every person, so if there are 100 people in the collection, the search for the maximum age will be performed 100 times

From

Cover of Kotlin in Action

Note

5
motivation for sequences and workaround how to solve it w/o sequences