thanks for the very clear explanation!

chris

On 28 October 2014 14:08, Roger Hui <[email protected]> wrote:

> The dyad n f\x provides infix of size n.  Reduction is not automatically
> provided so if you want reduction you have to specify it explicitly:
>
>    2 +/\ 1+i.10
> 3 5 7 9 11 13 15 17 19
>
> Since reduction is not built in you can apply other functions, such as <
> (box):
>
>    2 <\ 1+i.10
> ┌───┬───┬───┬───┬───┬───┬───┬───┬────┐
> │1 2│2 3│3 4│4 5│5 6│6 7│7 8│8 9│9 10│
> └───┴───┴───┴───┴───┴───┴───┴───┴────┘
>
>
>
> On Mon, Oct 27, 2014 at 7:59 PM, 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
> >
> ----------------------------------------------------------------------
> 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