The question has been answered already. The mathematical convention is too important. Thus minus - , divide %, less -. , element e. and by the way Matrix divide % have the
conventional arguments and differ from the J rule:
"x are the control information - y are the data" as expressed in JfC.

But so far I have not seen the argument, why the sort /: and \: behave different. When writing code I quite often make mistakes here, so a good argument would help to remember.
Thanks,

Markus


Terrence Brannon schrieb:
It seems that the Residue function should follow the same argument order as %

It does not seem consistent or intuitive for the arguments to be reversed.

What motivated this decision? I spent 5 minutes about to tear my hair out trying
to figure out the results I was getting from Residue.

 7 % 2
3.5
   2 | 7    NB. would be 7 | 2 if I were designing J :)
1


I'm sorry to ask what seem like such nitpicky little questions, but I got a
great answer regarding Passive, so perhaps I am just ignorant of some loftier
motivation for such argument calling conventions.


----------------------------------------------------------------------
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