get

inline fun <T> get(index: Int): T

Returns the element at index in the flat element list, cast to T.

Return

The element.

Parameters

index

Zero-based index into elements, regardless of the array's PostgreSQL lower bound.

Type Parameters

T

The expected element type. Declare it nullable to accept a SQL NULL element.

Throws

COLUMN_NOT_FOUND if index is outside elements, CONVERSION_ERROR if the element is not a T.