Gap

interface Gap

An interface representing the Gap from a gap buffer.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun shift(amount: Int)

Shifts the start and end indices of the gap by the provided amount, keeping it in the boundaries of the gap buffer.

Properties

Link copied to clipboard
abstract val endIndex: Int

The end index of the gap (exclusive).

Link copied to clipboard
abstract val startIndex: Int

The start index of the gap (inclusive).