<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def map_field(field, func, dict_sequence):
 """ Apply given function to value of given key in every dictionary in sequence and set the result as new value for that key. """

    for item in dict_sequence:
        try:
            item[field] = func(item.get(field, None))
            yield item
        except ValueError:
            pass