v1.9.10
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.sequences / minWithOrNull

minWithOrNull

Common
JVM
JS
Native
1.4
fun <T> Sequence<T>.minWithOrNull(
    comparator: Comparator<in T>
): T?

(source)

Returns the first element having the smallest value according to the provided comparator or null if there are no elements.

The operation is terminal.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains