firstOrNullAtPosition

fun <T : TimeRange> List<T>.firstOrNullAtPosition(position: Long): T?

Returns the first TimeRange element in the list that contains the specified position.

Return

The first TimeRange element containing the position, or null if no such element is found.

Parameters

T

The type of TimeRange.

position

The position to search for within this list of TimeRanges.