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
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
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
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