map

fun <T, R> StateContainer<T>.map(mapper: (T) -> R): R

Maps the current state to a different type.