forEach for generators