thanks very much, Don I'm not sure if this is undocumented magic for } or for L:0
This also works as expected: (1 0 ; 4 2 ; 3 3) (0 2}) L:0 (0 1 4; 2 3 4 ; 4 5 4) │1 1 0│4 3 2│3 5 3│ ----- Original Message ----- From: Don Guinn <[email protected]> To: Programming forum <[email protected]> Cc: Sent: Monday, August 19, 2013 12:19:36 PM Subject: Re: [Jprogramming] updating a list of boxes ( <"0]1 2 3) (0})("0 1) L:0 (0 1 ; 2 3 ; 4 5) +---+---+---+ |1 1|2 3|3 5| +---+---+---+ On Mon, Aug 19, 2013 at 10:10 AM, Pascal Jasmin <[email protected]>wrote: > 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
