func2 is a hook. The semantics of a hook are more complex than simple
composition.
On Apr 30, 2014 11:42 AM, "Jon Hough" <[email protected]> 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