overlaps

fun overlaps(other: Range): Boolean

Checks if the given range overlaps.

Return

true if there are overlapping elements.

Parameters

other

Range to check for overlapping elements.


fun overlaps(otherRanges: List<Range>): Boolean

Checks if the given list of ranges overlaps with the current range

Return

true if there are overlapping elements.

Parameters

otherRanges

List of ranges to check for overlapping elements.