[Jprogramming] boxing each element

bob therriault bobtherriault at mac.com
Tue Jul 17 17:02:28 UTC 2012


Another option might be: 

] each i. 10

where 'each' is already defined in J as &.> 

Although this looks closer to a direct english translation, it is actually using the functionality of 'each' to do the boxing. 

Cheers, bob

On 2012-07-17, at 9:55 AM, Joey K Tuttle wrote:

>   <"0]i.10
> 
> On 2012/07/17 09:49 , Kim Kuen Tang wrote:
>> 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



More information about the Programming mailing list