eygraber
08/21/2020, 1:49 AMmax
on. I get a deprecation warning, so I run the "Replace with maxOrNull" fix, and it replaces .max()
with maxOrNull()
. So I put the .
in front, and I get an unresolved reference error. There is no fix to import it. So I manually write the import (import kotlin.sequences.maxOrNull
), and I still get the unresolved reference error, and the import is gray (unused)._Sequences.kt
I see public fun <T : Comparable<T>> Sequence<T>.maxOrNull(): T?
eygraber
08/21/2020, 1:56 AM