Reducer

typealias Reducer<S, A> = (prevState: S, action: A) -> S