The documents [Ken Iverson I presume] assert j sentences should be read
left to right.  Thus +`*/n  where 1<#n is always sum of two items
despite the odd/even parity of #n.  Continue reading rightward to learn
details.

> Date: Tue, 31 Aug 2010 13:58:39 +0200
> From: "R.E. Boss" <[email protected]>
> Subject: Re: [Jprogramming] Why `3:
> To: "'Programming forum'" <[email protected]>
> Message-ID: <[email protected]@planet.nl>
> Content-Type: text/plain;       charset="us-ascii"
> 
> Remarkable with / or `:3 is the order of insertion.
> In http://www.jsoftware.com/help/dictionary/d612.htm it is illustrated
> that
> (+`*/ 1 2 3 4 5) -: (1+2*3+4*5)
> But what about +`*/ 2 3 4 5  ?
> I would have thought it to result in 46, being 2*3+4*5 , insertion
> being
> done from the right side, right-to-left being the predominant
> direction.
> However
> 
>    +`*/2 3 4 5
> 29
> 
> is equal to
> 
>    2+3*4+5
> 29

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

Reply via email to