A generalization of the symmetry between complete and elementary symmetric functions