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


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


<h2 id="withcurrent-block-r">withCurrent</h2>

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


```kotlin
public inline fun <T : StateRecord, R> T.withCurrent(block: (r: T) -> R): R
```


Provides a `block` with the current record, without notifying any read observers.