Re: n-dim matrices
[email protected] ("Jeremy Howard") Thu, 31 Aug 2000 12:48:51 +1100
| Newsgroups | perl.perl6.language.data |
|---|---|
| Message-ID | <[email protected]> |
I wrote: > Karl Glazebrook wrote: > > for a slice we want > > > > $a[10:20:2, 11:30:3] > > > As opposed to: > > $a[[10:20:2], [11:30:3]] > Sorry--I need to correct this. The correct syntax for a list slice under my proposal would actually be: @a[10:20:2][11:30:3] It needs the '@' of course since it's returning an array, and it needs to use the standard LOL notation with the extension to multiple elements. OTOH: @a[[10:20:2], [11:30:3]] would actually just return the 2 points at (10,12,14,16,18,20) and (11,14,17,20,23,36,29).