Re: Is there a way to bulky feed?

2009-07-10 Thread Xiao Yafeng
On Fri, Jul 10, 2009 at 12:29 AM, yary not@gmail.com wrote: On Wed, Jul 8, 2009 at 8:45 PM, Xiao Yafeng xyf.x...@gmail.com wrote: Any thoughts? First let's fix the whitespace in your post so it's easier to read- My question is: could I write below code in perl6: # 2 loops like for

Re: Is there a way to bulky feed?

2009-07-10 Thread yary
I understand now. Given a large list, you'd like to assign chunks of the list to an array, easily, while looping. In other words, you're looking for a way to abbreviate this: my $chunk_size=10_000; my @big=''..'mnop'; for ^...@big :by $chunk_size { my

Is there a way to bulky feed?

2009-07-09 Thread Xiao Yafeng
My question is: could I write below code in perl6: my @a = 1 2 3 4; my @b[2]; for @a - @b {;} # 2 loops like for @a - $b[0],$b[1]{;} my @a = 1 2 3 4; my @b; for @a - @b {;} # 1 loop

Re: Is there a way to bulky feed?

2009-07-09 Thread yary
On Wed, Jul 8, 2009 at 8:45 PM, Xiao Yafeng xyf.x...@gmail.com wrote: Any thoughts? First let's fix the whitespace in your post so it's easier to read- My question is: could I write below code in perl6: # 2 loops like for @a - $b[0],$b[1] {;} my @a = 1 2 3 4; my @b[2]; for @a -@b {;} my @a