Reducers
Reducers are devices or functions designed to reduce a physical quantity or to transform a state. In engineering, a gear reducer or gearbox lowers rotational speed while increasing torque. In software, a reducer is a pure function that computes a new application state from the current state and an action. Both uses share the goal of controlled transformation, with different implementations and constraints.
A mechanical reducer consists of gears in a housing and typically two or more shafts: an input
Software reducers are pure functions used in unidirectional data flow architectures, notably Redux. A reducer takes