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

position

The position to search for within this list of TimeRanges.

Type Parameters

T

The type of TimeRange.