string

fun string(): Index<String, Int, Char>

Index instance for String. It allows access to every Char in a String by its index's position.

Receiver

Index.Companion to make the instance statically available.

Return

Index instance