Created
June 19, 2020 09:07
-
-
Save atimca/12981cb4b4cf621e06a421c49d9c7d41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func combine(_ reducers: Reducer...) -> Reducer { | |
return { state, event in | |
reducers.reduce(state) { state, reducer in | |
reducer(state, event) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment