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

contains

Common
JVM
JS
Native
1.0
open operator fun contains(value: T): Boolean
(source)

Checks whether the specified value belongs to the range.

A value belongs to the open-ended range if it is greater than or equal to the start bound and strictly less than the endExclusive bound.

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