contains
Returns true
if this range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.3
Checks if the specified value belongs to this range.
Returns true
if this range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.5
Checks if the specified value belongs to this range.
Since Kotlin
1.5
inline operator fun <T : Any, R : Iterable<T>, ClosedRange<T>> R.contains(element: T?): Boolean
Content copied to clipboard
Returns true
if this iterable range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.3