John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
Shouldn't that be <<== rather than <== to be consistent with S06? As written, each line will overwrite the previous .todo, and @@x will contain an array of one list. E.g. from S06:my @@x; @@x <== %hash.keys.grep: {/^\d+$/}; @@x <== =<>; @@x <== 1..*; @@x <== gather { loop { take rand 100 } }; @array{@@x}
0..* ==> @@foo; 'a'..* ==>> @@foo; pidigits() ==>> @@foo; for zip(@@foo) { .say } [0,'a',3] [1,'b',1] [2,'c',4] [3,'d',1] [4,'e',5] [5,'f',9] ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [Perl 6] S09 error?
by TimToady (Parson) on Mar 29, 2008 at 14:49 UTC |