Takes in a stream of objects and merges them together, outputting every time the state updates.