sliceDoc

fun sliceDoc(from: DocPos = DocPos.ZERO, to: DocPos = doc.endPos): String

Return the given range of the document as a string.