reduceState

open override fun reduceState(storage: MutableMap<NodeParameterKey<T, *>, Any?>, state: R): U

Reduce the provided state, optionally storing it in the storage.

Note: Implementations may throw any arbitrary Exception in reduceState. In case an exception occurs, matching this callback is being executed for will be considered as a "Did not match".

Return

The (possibly transformed) state

Parameters

storage

Map in which you can store data

state

The state provided to this reducer.