If a generator has no yield statements, it is kept as its normal function and wrapped by a helper that turns it into a 0-item iterator that always returns that it is done.