You're overthinking it.

           (1 2 3) 0} each (0 1 ; 2 3 ; 4 5)
        +---+---+---+
        |1 1|2 3|3 5|
        +---+---+---+

           (1 1 ; 2 3 ; 3 5) -:  (1 2 3) 0} each (0 1 ; 2 3 ; 4 5)
        1
           

-Dan

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Pascal Jasmin
Sent: Monday, August 19, 2013 12:10 PM
To: [email protected]
Subject: [Jprogramming] updating a list of boxes

hi again everyone,

I seem stuck in how to do the following:

update a list of boxes y at field 0 with list of replacement values x.

The closest I've gotten is:

 ( 1 2 3) (0})("0 1) L:0 (0 1 ; 2 3 ; 4 5)


That produces a 3 x 3 array of boxes, with the diagonal the right answer.
 The result I want is:

1 1 ; 2 3 ; 3 5
----------------------------------------------------------------------
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