>So this is meant as some sort of "EOF" (or rather EOL) marker, right?
>
>Perl 6 does not do this, because there's already an EOF mechanism, and
> you can use LAST phasers to execute after the final iteration, but still
> inside the scope of the loop that works with the list.
I admit, I do like the idea of using a LAST, and I don't have a need
for this other than comparison.
And I figured out my mistake with the first example, here's the correct version:
sub gen2 {take 3;take 4;}
sub gen {take 1;take 2;gen2;}
.say for gather gen
1
2
3
4