Re: Dimension of slices; scalars versus 1-element arrays?

2005-01-11 Thread Craig DeForest
On Tuesday 11 January 2005 10:06 pm, Dave Whipp wrote: > We know that > > @a = (1, 2, 3); > $b = @a[1]; > > Loses the dimension as a DWIM. > > So perhaps we could say that assigning to a lower dimension always gets > rid of a dimension of size 1 -- or error if it can't: > > @c = ( 1,2,3 ; 4,5,6 );

Re: Dimension of slices; scalars versus 1-element arrays?

2005-01-11 Thread Dave Whipp
Larry Wall wrote: On Sat, Jan 08, 2005 at 11:37:06AM -0700, Craig DeForest wrote: : Is the perl6 expression : @a[4; 0..5]; : a 1x6 array (probably correct)? Or a 6 array (probably not correct)? Certainly the former. I don't think dimensions should ever disappear accidentally. Except when y

Perl 6 Summary for 2004-01-03 through 2004-01-11

2005-01-11 Thread Matt Fowles
Perl 6 Summary for 2004-01-03 through 2004-01-11 Welcome to another Perl 6 summary. In this summary, we will explore such thrilling issues as multi-dimensional slices of Chinese food. After all, the amount of sauce any piece of Chinese food can absorb is proportional to its surface