mapPos

fun mapPos(pos: Int, assoc: Int = -1): Int

Map a document offset issued against the request-time document to the current document.

Parameters

pos

The offset in the request-time document.

assoc

Which side of an insertion the position prefers (negative biases left, positive biases right). Defaults to -1.