← Docs
kotlin-stdlib / kotlin.ranges / LongRange / contains

contains

Common
JVM
JS
Native
1.0
fun contains ( value : Long ) : 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
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .