Raul wrote:

>   guard=: ({.~ _1 - $)@({.~ 1 + $) 

Or:

       ( |.~ _1 #~ #@:$ ) @: ( {.~  2+$)

Rotate, like take, accepts a vector on the left (each scalar corresponding to 
an axis in the right).

-Dan

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

Reply via email to