We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1786eb0 commit 5636e43Copy full SHA for 5636e43
benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/SequencePlaysScrabble.kt
@@ -30,7 +30,7 @@ open class SequencePlaysScrabble : ShakespearePlaysScrabble() {
30
val bonusForDoubleLetter: (String) -> Int = { word: String ->
31
toBeMaxed(word)
32
.map { letterScores[it - 'a'.toInt()] }
33
- .max()!!
+ .maxOrNull()!!
34
}
35
36
val score3: (String) -> Int = { word: String ->
0 commit comments