[Jprogramming] boxing each element
bob therriault
bobtherriault at mac.com
Tue Jul 17 21:48:00 UTC 2012
, each i. 10
would put a list in each box created.
] each i. 10
would put a scalar in each box
Cheers, bob
On 2012-07-17, at 2:14 PM, Dan Bron wrote:
> It's not abuse - that's perfectly valid. Note, however:
>
>
> ]A=:1 <\ i. 10
> +-+-+-+-+-+-+-+-+-+-+
> |0|1|2|3|4|5|6|7|8|9|
> +-+-+-+-+-+-+-+-+-+-+
> ]B=:<"0 i. 10
> +-+-+-+-+-+-+-+-+-+-+
> |0|1|2|3|4|5|6|7|8|9|
> +-+-+-+-+-+-+-+-+-+-+
> A-:B
> 0
>
> NB. A and B are not the same - why not?
>
> $&.>B
> +++++++++++
> |||||||||||
> +++++++++++
> $&.>A
> +-+-+-+-+-+-+-+-+-+-+
> |1|1|1|1|1|1|1|1|1|1|
> +-+-+-+-+-+-+-+-+-+-+
>
>
>
>
> -----Original Message-----
> From: programming-bounces at forums.jsoftware.com
> [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of Kim Kuen Tang
> Sent: Tuesday, July 17, 2012 4:36 PM
> To: programming at jsoftware.com
> Subject: Re: [Jprogramming] boxing each element
>
>
> 1<\i.10
>
>
> is for me not ideal because you are abusing the adverb \ .
>
> Am 17.07.2012 21:15, schrieb Linda Alvord:
>> <"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: programming-bounces at forums.jsoftware.com
>> [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of Kim Kuen
> Tang
>> Sent: Tuesday, July 17, 2012 12:50 PM
>> To: programming at jsoftware.com
>> 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
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list