try func3=. [:(3&+) 2&-
or
func4=.3+2&-

I've been caught by the hook in the past.

Don Kelly+

On 30/04/2014 8:42 AM, Jon Hough wrote:
I can't understand why
func1 =. 3&+ @: (2&-)
func2 =. (3&+) (2&-)

give different results as mondaic verbs.
func1 5 gives 0, which is what I would expect.
func2 5 gives 12, which I can't understand.
I would like to know what the difference is between func1 and func2. It is my 
understanding that for monadic verbs @: is optional, so doesn't add anything to 
the meaning of the whole verb.
Regards.                                        
----------------------------------------------------------------------
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