contains

open operator fun contains(value: T): 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.

Since Kotlin

1.9