<div class='type'>Function</div>


<a id='references'></a>


<h2 id="foreachchange-block-range-originalrange">forEachChange</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalFoundationApi
inline fun ChangeList.forEachChange(block: (range: TextRange, originalRange: TextRange) -> Unit)
```


Iterates over all the changes in this `ChangeList`.

Changes are iterated by index, so any changes made by `block` after the current one will be
visited by `block`. `block` should not make any new changes _before_ the current one or changes
will be visited more than once. If you need to make changes, consider using
`forEachChangeReversed`.