Not sure why but it seems to have to do with length compatibility of the indexes:
'='((<0; 0 1 2 3),(<1; 2 3),< 2 4 ; 5)}n |domain error | '=' ((<0;0 1 2 3),(<1;2 3),<2 4;5)}n but '='((<0; 0 1 2 3),(<1;2 2 2 3),< 2 2 2 4 ; 5)}n ====OOOO OO==OOOO OOOOO=OO OOOOOOOO OOOOO=OO and (0,&.>0 1 2 3),(1,&.>2 3),2 4,&.>5 +---+---+---+---+---+---+---+---+ |0 0|0 1|0 2|0 3|1 2|1 3|2 5|4 5| +---+---+---+---+---+---+---+---+ '=' ((0,&.>0 1 2 3),(1,&.>2 3),2 4,&.>5) } n ====OOOO OO==OOOO OOOOO=OO OOOOOOOO OOOOO=OO On Sat, Nov 23, 2019 at 2:19 PM Jimmy Gauvin <[email protected]> wrote: > Hi, > > is there any way of making this kind of assignment ? > > '='((<0; 0 1 2 3),(<1; 2 3),< 2 4 ; 5)}n > |domain error > | '=' ((<0;0 1 2 3),(<1;2 3),<2 4;5)}n > > But this works : > '='((<1; 2 3),< 2 4 ; 5)}n > OOOOOOOO > OO==OOOO > OOOOO=OO > OOOOOOOO > OOOOO=OO > > and so does : > > ((<0; 0 1 2 3),(<1; 2 3),< 2 4 ; 5){n > > OOOO > > OO > > OO > > > > Thanks > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA Quantitative Consultant ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
