Skip to content

Instantly share code, notes, and snippets.

@uteke

uteke/Reducer.kt Secret

Created August 29, 2023 09:11
Show Gist options
  • Save uteke/df087344b1a7bb35f9cb81f513a13fc7 to your computer and use it in GitHub Desktop.
Save uteke/df087344b1a7bb35f9cb81f513a13fc7 to your computer and use it in GitHub Desktop.
Reducer contract interface
interface Reducer<Mutation, ViewState> {
operator fun invoke(mutation: Mutation, currentState: ViewState): ViewState
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment