In APL i. 10 (using i. for iota) gives 1 2 3 …

In J i. 10  gives 0 1 2 …

APL’s choice of counting origin 1 is one issue -

In J

   2 +/\ >:i. 10
3 5 7 9 11 13 15 17 19

The J Dictionary is a good reference.


> On 2014 Oct 27, at 19:59 , Chris Wright <[email protected]> wrote:
> 
> in apl (using i. for iota)
> 
> 2+/i.10
> 
> gives pair wise additions
> 
> 3 5 7 9 11 13 15 17 19
> 
> but j gives:
> 
> 2 3 4 5 6 7 8 9 10 11
> 
> is there an n-wise reduction idiom or glyph for j?
> 
> cheers and thanks
> 
> Chris

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

Reply via email to