Implement generator expressions by converting to generator functions