Use a generator comprehension.