arrow-optics / arrow.optics.extensions / StringIndex

StringIndex

interface ~~StringIndex~~ : Index<String, Int, Char> Deprecated: Typeclass interface implementation will not be exposed directly anymore.

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

Functions

index Get Optional focus A for a structure S at index i.open fun index(i: Int): Optional<String, Char>

Companion Object Functions

invoke Operator overload to instantiate typeclass instance.operator fun invoke(): Index<String, Int, Char>

Do you like Arrow?

Arrow Org
<