Should probably add some kind of note here that mentions that the order in which the keys are enumerated is not guaranteed, so make sure your operation is commutative.