Use a generator