>:@]                  ^:   [                "_1
increment right oper  If   left oper is 1;  apply on items

When x v y is a list, it is a list of powers, and u is applied at all 
thosepowers.  But that's not happening here, because the verb is being 
applied on items (here, =atoms) of x and y.

The rank "_1 applies to the entire verb >:@]^:[


Henry Rich


On 9/19/2011 3:18 PM, Zheng, Xin (NIH) [C] wrote:
> Hello all,
>
> I cannot understand the following example in JforC.
>
> 1 0 0 1 0>:@]^:["_1 (1 2 3 4 5)
> Output - 2 2 3 5 5
>
> For which verb is the rank? For '>:@]^:[' ?
> And in x u^:v y, when v is a list, what's the rule in applying the verb?
>
> Appreciate any hint in advance.
> Xin
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to