Function cellReducer