Multidimensional slice

Ali Çehreli acehreli at yahoo.com
Wed Dec 19 11:35:40 PST 2012


On 12/19/2012 01:58 AM, Rafael wrote:

 > my ... english.

Thank you. Your English is very well.

 > //Then I want to do something like
 > x = S[0..$, 1]; //get column
 > S[0..$, 2] = A[0..$, 2]; //get and set column
 > auto B = A[0..10, 0..10]; //get submatrix block of matrix A

I don't know whether all of those are covered but what you need is 
opDollar, which is already implemented on git master:

   http://d.puremagic.com/issues/show_bug.cgi?id=3474

Ali



More information about the Digitalmars-d-learn mailing list