checkIndex

inline fun checkIndex(label: String, pos: Int, size: Int)

Checks if the index is in bounds.

Parameters

label

The label of the index.

pos

The index.

size

The size of the array.

Throws

If the index is out of bounds.