Re: A thought concerning matrix index variables...
[email protected] ("Jeremy Howard") Thu, 31 Aug 2000 11:10:47 +1100
| Newsgroups | perl.perl6.language.data |
|---|---|
| Message-ID | <[email protected]> |
Buddha Buck wrote: > RFC 169 says it would be nice if: > > @a[^i;^j] = @b[^j;^i]; > > did a transpose operation. > > Should the syntax also allow: > > # fill a 10x10 array with 0-99 > my @table: bounds(10,10); > @table[^i;^j] = ^i*10 + ^j; > I think it should--it seems a natural extension.