Not to mention that it's long been a principle in the APL world that any behavior giving an error can safely be given non-error behavior, though this looks more like it's simply a bug in 8.05 that got fixed.
On Sat, Oct 22, 2022 at 12:40 PM 'robert therriault' via General < [email protected]> wrote: > The original example was > > (>1 0 1; 1 1 0; 0 1 1 ) #"_ 1 > 1 2 3;4 5 6 > > I think that Raul was using ; in place of # for illustrative purposes. > > (>1 0 1; 1 1 0; 0 1 1 ) ;"_ 1 > 1 2 3;4 5 6 NB. J805 > > ┌─────┬─────┐ > │1 0 1│1 2 3│ > │1 1 0│ │ > │0 1 1│ │ > ├─────┼─────┤ > │1 0 1│4 5 6│ > │1 1 0│ │ > │0 1 1│ │ > └─────┴─────┘ > > (>1 0 1; 1 1 0; 0 1 1 ) #"_ 1 > 1 2 3;4 5 6 NB. J805 > |length error > | (>1 0 1;1 1 0;0 1 1) #"_ 1>1 2 3;4 5 6 > > The behaviour that I see in J903 is far more useful and feels more > consistent. > > (>1 0 1; 1 1 0; 0 1 1 ) #"_ 1 > 1 2 3;4 5 6 NB. J903 > 1 3 > 1 2 > 2 3 > > 4 6 > 4 5 > 5 6 > > Cheers, bob > > On Oct 22, 2022, at 09:31, Henry Rich <[email protected]> wrote: > > > > I get > > > > (>1 0 1; 1 1 0; 0 1 1 ) ;"_ 1 > 1 2 3;4 5 6 > > > > +-----+-----+ > > |1 0 1|1 2 3| > > |1 1 0| | > > |0 1 1| | > > +-----+-----+ > > |1 0 1|4 5 6| > > |1 1 0| | > > |0 1 1| | > > +-----+-----+ > > > > Henry Rich > > > > On 10/22/2022 12:17 PM, Raul Miller wrote: > >> When I inspect the arguments being applied here > >> > >> (>1 0 1; 1 1 0; 0 1 1 ) ;"_ 1 > 1 2 3;4 5 6 > >> > >> I see no reason for a length error. > >> > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > 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
