contains
Returns true
if this range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.3Checks if the specified value belongs to this range.
Since Kotlin
1.0Checks if the specified value belongs to this range.
Since Kotlin
1.7Returns true
if this range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.5Checks if the specified value belongs to this range.
Since Kotlin
1.5Returns true
if this iterable range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.3Returns true
if this iterable range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.7Deprecated
Warning since 1.3
Error since 1.4
Hidden since 1.5
This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.
Checks if the specified value belongs to this range.