maxWith
Returns the first element having the largest value according to the provided comparator.
The operation is terminal.
Since Kotlin
1.7Throws
if the sequence is empty.
Returns the first element having the largest value according to the provided comparator.
The operation is terminal.
if the sequence is empty.
Thanks for your feedback!