def asc_peaks(iterable):
    """ Yields ascending peaks from `iterable`. """
    it = iter(iterable)
    try:
        cur = next(it)
    except StopIteration:
        return
    for x in it:
        if x < cur:
            yield cur
        cur = x
    yield cur
