I want make an update func for dic, I cam out with this func but I am not sure is it right way or I could do it better than this?
func updateDictionaryFun