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

Reply via email to