get

operator fun get(index: Int): String(source)

Returns the path segment at the specified index.

Return

The segment string at the given position.

Parameters

index

The zero-based index of the segment to retrieve.

Throws

if the index is out of range.