transform

open infix fun <V> transform(transformer: (R) -> V): StateCallbackBuilder<T, V>

Transform the current value using the given lambda.

You can then chain other calls (e.g. storeIn) off of this transform call.