Hmm, I guess I put in too much work. Reading a little further in
"Learning J" shows me the answer:

tpd =: >. - <.

but I would still like to know... ah! I was trying to get right and
left arguments not first and second

On 5/6/07, Terrence Brannon <[EMAIL PROTECTED]> wrote:
Here is the definition of positive difference that works:

PosDiff =: 4 : '(x >. y) - (x <. y)'

I tried to create a version which is a fork, but it is returning 0 0
instead of differencing them:

PosDiff =: (] >. [) - (] <. [)
   PosDiff 4 3
0 0
   PosDiff 3 4
0 0

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

Reply via email to