Em Sex, 2009-06-12 às 11:52 -0700, Jon Lang escreveu:
> On Fri, Jun 12, 2009 at 11:51 AM, Daniel Ruoso<dan...@ruoso.com> 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 flattening,
> > so the dimensionality was lost.
> Right.  I should have said:
>     @@a = (1, 2, 3; 4, 5, 6; 7, 8, 9);

The important point here is that it means we're dealing with a different
type, so it can actually behave differently, so "@@a.rotate" would
rotate the first dimension only..

maybe @@a.rotate(1;1) would mean to rotate by 1 in the first dimension
and by 1 in the second, producing

 (5, 6, 4; 8, 9, 7; 2, 3, 1)

daniel


Reply via email to