<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse(self, argv):
 """ Parses the given `argv` and returns a dictionary mapping argument names to the values found in `argv`. """

        rv = {}
        for pattern in self.patterns:
            pattern.apply(rv, argv)
        return rv