`f` in foreach could be generator or not.