set takes a name a new value and a dictionary. It runs through the dictionary. If the name is found, the corresponding value is replaced. If the name is never found, an error is generated.