Sorry @Jon, your understanding is faulty. You can't just omit the (@:) in
(u@:v).

J should come with a prominent health warning that u(v y) is not the same
as (u v)y. Yet when I do a low pass over the documentation as a newcomer
might see it, I don't think that fact is made sufficiently clear.

IMO the clearest place is here:
http://www.jsoftware.com/help/primer/hook.htm . Now compare it with:
http://www.jsoftware.com/jwiki/Vocabulary/atco



On Wed, Apr 30, 2014 at 4:42 PM, 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