All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.aartikov.sesame.loop.Reducer.kt Maven / Gradle / Ivy

package me.aartikov.sesame.loop

/**
 * Executes action processing.
 */
interface Reducer {

    /**
     * Receives current state and an action, generates a [Next]-object.
     * Can't execute side effects directly. Must be a pure function.
     */
    fun reduce(state: StateT, action: ActionT): Next
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy