Apologies for the long post with mistakes in it. I'm going to try
again, biting off less.
my @g[2;2];
@g[0;0]='r0c0';
@g[0;1]='r0c1';
@g[1;0]='r1c0';
@g[1;1]='r1c1';
@g[1] is due to S09:
Multi-dimensional arrays, on the other hand, know how to handle a
multidimensional slice, with one subslice
I think this proposal goes to far in the dwimmery direction-
On Sat, Jun 13, 2009 at 12:58 PM, John M. Dlugosz<2nb81l...@sneakemail.com>
wrote:
> Daniel Ruoso daniel-at-ruoso.com |Perl 6| wrote:
>>
>> So, how do I deal with a multidim array? Well, TIMTOWTDI...
>>
>> my @a = 1,[2,[3,4]];
>> say @
Daniel Ruoso daniel-at-ruoso.com |Perl 6| wrote:
So, how do I deal with a multidim array? Well, TIMTOWTDI...
my @a = 1,[2,[3,4]];
say @a[1][1][1];
say @a[1;1;1]; # I'm not sure this is correct
I think that it should be. That is, multi-dim subscript is always the
same as chained subscrip
Larry Wall larry-at-wall.org |Perl 6| wrote:
Alternately, we leave @@ (or @%) meaning ¢ and instead let some
other syntax take over the "pay attention to the capture's structure"
semantics from @@. Maybe it's another use for the zen slice:
"pay attention to the capture's structure" is a c
On Fri, Jun 12, 2009 at 04:00:10PM -0300, Daniel Ruoso wrote:
: Em Sex, 2009-06-12 às 11:52 -0700, Jon Lang escreveu:
: > On Fri, Jun 12, 2009 at 11:51 AM, Daniel Ruoso wrote:
: > > Ok, There's one thing that is not clear in the thread, which is when an
: > > array is multidimensional or not...
: >
Em Sex, 2009-06-12 às 11:52 -0700, Jon Lang escreveu:
> On Fri, Jun 12, 2009 at 11:51 AM, Daniel Ruoso wrote:
> > Ok, There's one thing that is not clear in the thread, which is when an
> > array is multidimensional or not...
> > For instance:
> > @a = (1, 2, 3; 4, 5, 6; 7, 8, 9);
> > Will produce
On Fri, Jun 12, 2009 at 11:51 AM, Daniel Ruoso wrote:
> Ok, There's one thing that is not clear in the thread, which is when an
> array is multidimensional or not...
>
> For instance:
>
> �...@a = (1, 2, 3; 4, 5, 6; 7, 8, 9);
>
> Will produce a flatten array, because list assignment causes flatteni
Ok, There's one thing that is not clear in the thread, which is when an
array is multidimensional or not...
For instance:
@a = (1, 2, 3; 4, 5, 6; 7, 8, 9);
Will produce a flatten array, because list assignment causes flattening,
so the dimensionality was lost.
It is important to remember that