On Tue, Aug 5, 2008 at 8:55 PM,  <[EMAIL PROTECTED]> wrote:
> [I'm picky here because a beginner is at risk.  I know that *I* had
> troubles using "/" for my first three J years.]
>
> Devon McCormick wrote:
>>
>> J has a handy adverb called "table" which is the forward slash "/".  This
>> allows you to apply a function orthogonally, e.g.
>>     1 2 3 4 5 +/ 1 2
>> adds each number on the left to each on the right,
>
> One might think so but this is not true.
> "/" itself is not causing an "each on each".
>
> A better wording is:
>
> "In
>        1 2 3 4 5  +/  1 2
> each argument cell from the left is individually added to the entire
> argument (cell array) on the right, and computation proceeds from there."

Yes. The exact behaiviour of table has confused me a lot as a
beginner. Turns out, table doesn't really do anything unless the verb
argument has both finite left rank and finite right rank.  I undersand
this nowadays so I usually just use an explicit rank conjunction
instead of table in confusing cases.

Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to