encloses

infix fun encloses(other: Range<T>): Boolean

Returns true, if the bounds of the other range do not extend the bounds of this range.

Return

true if, this range encloses the other range

Parameters

other

range to be evaluated