for i in lst:
    if not asc or i >= asc[-1]:
        asc.append(i)
else:
    if len(asc) >= min_len:
        yield asc
asc = [i]
if not desc or i <= desc[-1]:
    desc.append(i)
else:
    pass
Determining where in a list ascending or descending stops