You are right.  J does it the efficient way.  The result is AS IF it started with the largest, but it actually builds the result back-to-front.

Note that u/\ can't do this.  Except for special values of u that are known to be associative, u/\ has to evaluate each prefix in its entirety.

From your previous post: u/\. does combine u/ and u\. .  The result for each suffix is stored into the result for u/\. and then forwarded to the next execution of u .

Henry Rich

On 2/20/2018 11:18 AM, Arnab Chakraborty wrote:
Hi,

    I am curious about HOW the following is handled by J:

   +/\. i.10

As the dict says, +/ is applied to all the suffixes *starting with* the
entire i.10
and working down to just 9. The efficient way is of course the other way
around.
So what does J actually do?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


---
This email has been checked for viruses by AVG.
http://www.avg.com

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

Reply via email to