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


Cover of Kotlin in Action


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