runs

fun <T : Any> runs(key: AttributeKey<T>): <Error class: unknown class><RichRun<T>>

Retrieves all contiguous runs of the requested attribute key, merging internally split spans. Adjacent internal spans that possess the EXACT SAME attribute value for key will be combined into a single RichRun, ignoring differences in other attributes.


fun runs(predicate: (AttributeContainer) -> Boolean): <Error class: unknown class><RichRun<AttributeContainer>>

Retrieves all contiguous runs that satisfy the given predicate, merging internally split spans. Adjacent internal spans that satisfy the predicate and possess EXACTLY THE SAME attributes will be combined into a single RichRun.