> Take a look at http://www.jsoftware.com/jwiki/NYCJUG/notationFAQ for an
> argument why right-to-left execution is more useful than the reverse.

[snipped from above link]:
  2) for a non-commutative function, such as minus, the result is much
     more interesting evaluated right to left, e.g. -/1 2 3 4 5
     becomes the alternating sum (((1 - 2) + 3) - 4) + 5; if evaluation
     were as in conventional mathematics, this would be equivalent
     to the less interesting 1 - (2 + 3 + 4 + 5).



how would you express the 'less interesting' case in J?  in
left-to-right, i would express the interesting case as
  1 2 3 4 5 /-`+


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

Reply via email to