yield from

【yield from】

yield from

文章插图
yield fromyield from简介:函数g(){ yield 1;来自[2,3,4]的产量;产量5; } $ g = g();foreach ($g as $yielded) {var_dum