contains (original) (raw)

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.

Since Kotlin

1.0


Checks if the specified value belongs to this range.

Since Kotlin

1.9


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


Returns true if this iterable range contains the specified element.

Always returns false if the element is null.

Since Kotlin

1.3


Returns true if this iterable range contains the specified element.

Always returns false if the element is null.

Since Kotlin

1.9


Deprecated

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.

Since Kotlin

1.0