evolve

abstract fun <Stored> evolve(initial: Stored, transform: (Stored) -> Stored): Stored

Iteratively updates the value computing the transform expression at each device using the last computed value or the initial.