get

fun get(index: Int): T

Retrieves an item at the specified logical index. Index 0 represents the oldest element in the buffer.

Return

The item at the specified index.

Parameters

index

The logical index of the item.

Throws

if the index is out of bounds.