You can replace < with {
   {"1 v
+---+---+---+
|2 1|2 3|2 5|
+---+---+---+
|3 1|3 4|   |
+---+---+---+

But you have a bogus entry you need to eliminate.
You can deal with that raggedness by introducing
another < and then using ;
   <@{"1 v
+-------------+---------+
|+---+---+---+|+---+---+|
||2 1|2 3|2 5|||3 1|3 4||
|+---+---+---+|+---+---+|
+-------------+---------+
   ;<@{"1 v
+---+---+---+---+---+
|2 1|2 3|2 5|3 1|3 4|
+---+---+---+---+---+

But now you have lost the association of these
values with your 10 and 20 values.

You can retain this association by with careful
use of the identity function with that intermediate
result with the extra boxing.
   10 20 ["0&.><@{"1 v
+--------+-----+
|10 10 10|20 20|
+--------+-----+
   ;10 20 ["0&.><@{"1 v
10 10 10 20 20

This leaves us with something like
   w=:<@{"1 v
   (;10 20["0&.>w) (;w)} 9 9$9

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to