index

fun index(segment: String): Int?

The array index segment denotes, or null when it is not a canonical index token. Leading zeroes and - are deliberately not indices — /- is the append position, which writers handle separately.