SwiftRex / SwiftRex

Swift + Redux + (Combine|RxSwift|ReactiveSwift) -> SwiftRex
https://swiftrex.github.io/SwiftRex/
Apache License 2.0
624 stars 28 forks source link

Transform Reducer in a monoid, implement state lenses composition #1

Closed luizmb closed 6 years ago

luizmb commented 6 years ago

Done, Reducer is now a struct that wraps the reduce function and this struct has a monoidal composition. Implemented method "lift" that allows to create a reduce for the whole from a reducer for the substate (lenses).