What could be better is, if you are not just boxing each element but doing something to each element that may involve boxing it. In such a case f&.> aka f each may be better. For example:
x=: ;: 'Cogito, ergo sum.' x ┌──────┬─┬────┬────┐ │Cogito│,│ergo│sum.│ └──────┴─┴────┴────┘ y=: 'ABCD' x ,&.> <"0 y ┌───────┬──┬─────┬─────┐ │CogitoA│,B│ergoC│sum.D│ └───────┴──┴─────┴─────┘ x ,each <"0 y ┌───────┬──┬─────┬─────┐ │CogitoA│,B│ergoC│sum.D│ └───────┴──┴─────┴─────┘ x ,&.> y ┌───────┬──┬─────┬─────┐ │CogitoA│,B│ergoC│sum.D│ └───────┴──┴─────┴─────┘ x ,each y ┌───────┬──┬─────┬─────┐ │CogitoA│,B│ergoC│sum.D│ └───────┴──┴─────┴─────┘ On Tue, Jul 17, 2012 at 12:15 PM, Linda Alvord <[email protected]>wrote: > <"0 i.10 > --T-T-T-T-T-T-T-T-T-┐ > │0│1│2│3│4│5│6│7│8│9│ > L-+-+-+-+-+-+-+-+-+-- > > I'm not sure what you will call better. > > Linda > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Kim Kuen > Tang > Sent: Tuesday, July 17, 2012 12:50 PM > To: [email protected] > Subject: [Jprogramming] boxing each element > > Hi everyone, > > is there a better way to box each element ? > > 1 <\i.10 > > Thx for any comments or solutions. > > Kim > ---------------------------------------------------------------------- > 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
