1 2 (<./ @: +) 3 4 4 @ will apply <./ at 0 rank which means for each element in the list 3 4. minimum of 4 is 4 and minimum of 6 is 6. @: applies on the whole list.
----- Original Message ----- From: Jon Hough <[email protected]> To: "[email protected]" <[email protected]> Cc: Sent: Thursday, February 27, 2014 8:15:54 PM Subject: [Jprogramming] Atop Question Another beginner question . I'm trying to understand how atop (@) works.I've read this http://www.jsoftware.com/help/dictionary/d620.htm But I made my own example and the results are not as I expected.I made a tacit dyadic verb: func =: <./ @ + Here + is dyadic and <./ is monadic. If I do 1 2 func 3 4 The result is 4 6 But from the above link: x u@v y ↔ u x v y So this verb is equivalent to adding the two vectors x and y and then finding the min element of the resulting vector. So I think the result should just be 4.In other words, why is my result 4 6? Indeed, if I break up the verb and do: 1 2 + 3 4 result: 4 6 <./ 4 6 result: 4 This is as I think it should be. Any help appreciated. Thanks,Jon ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
