<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def min_ungap_length_discard(records, min_length):
 """ Discard any records that are shorter than min_length after removing gaps. """

    for record in records:
        if len(ungap_all(record)) >= min_length:
            yield record