[EMAIL PROTECTED] writes: > +++ doc/trunk/design/syn/S06.pod Mon Feb 12 00:10:05 2007 > + Version: 69 > > ... this does [work]: > > + my @data = 1,2,3; > + my @tmp = eager @data; > + @data <== grep { $_ % 2 } <== @tmp; > + > +Conjecture: these are probably impossible: > + > + @data <== grep { $_ % 2 } <== eager @data;
Surely that's the form that folks will actually want? With no supporting data at all I'm going to claim it's reasonably common to want to filter an array without any need to keep the original around; having the Perl 6 idiom for that involve a temporary array seems rather ugly, exactly the sort of awkwardness that Perl 6 is eliminating elsewhere. Smylers