<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_items(self, items):
 """ Replace the 'items' list of this OrderedSet with a new one, updating self.map accordingly. """

        self.items = items
        self.map = {item: idx for (idx, item) in enumerate(items)}