develooper Front page | perl.perl6.language.data | Postings from August 2000

A thought concerning matrix index variables...

Thread Next
From:
Buddha Buck
Date:
August 30, 2000 11:09
Subject:
A thought concerning matrix index variables...
Message ID:
4.3.2.7.0.20000830140631.00d01a90@armstrong.cse.buffalo.edu
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;


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About