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.0inline operator fun <T : Any, R : Iterable<T>, ClosedRange<T>> R.contains(element: T?): Boolean(source)
Returns true
if this iterable range contains the specified element.
Always returns false
if the element is null
.
Since Kotlin
1.3Deprecated
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.