I usually develop my code to work on a single item of an array - insofar as that is possible - then use &.> with whatever works.
On Mon, Aug 1, 2011 at 10:35 AM, mijj <[email protected]> wrote: > seeing these clear solutions to this problem makes it obvious i've got a > totally wrong handle on how to deal with boxed data. > > a kind of fog descends and i imagine i need to incredibly complicated > things to make a relatively simple op work. > > so .. basically .. it's like : stick [ &.> ] on the front and then just > deal with it as if it's a normal array? > > On 2011-08-01 15:20, Devon McCormick wrote: > > I rely on "13 :" a lot to help me combine pieces I want to apply en-masse > > using each: > > > > 13 : 'x+6*y' > > [ + 6 * ] > > P ([ + 6 * ])&.> A > > +----+-------+ > > |8 14|4 10 16| > > +----+-------+ > > > > > > On Mon, Aug 1, 2011 at 10:11 AM, Raul Miller<[email protected]> > wrote: > > > >> On Mon, Aug 1, 2011 at 10:02 AM, mijj<[email protected]> wrote: > >>> i had (2 _2) +&.> (6&*)&.> 1 2; 1 2 3 > >>> > >>> .. it was combining the [+&.>] and [(6&*)&.>] that was eluding me. > >> > >> [ and ] are looking like functions to me, but anyways, presumably you > >> have stumbled upon > >> > >> 2 _2 (+ 6&*)&.> 1 2; 1 2 3 > >> > >> -- > >> Raul > >> ---------------------------------------------------------------------- > >> 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 ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
