index

fun index(slot: Long, count: Int): Int(source)

Index into a list of count items for slot; wraps and handles negative slots.