Reducer

typealias Reducer<State> = State.(Action) -> State

Reduces a state + action to a new state