Harvey,

Consider the following examples to understand dyadic ]
in different contexts (there are others, perhaps,
but see if these help).

   1 2 3 ] 5 6 7            NB. example 0
5 6 7
   1 2 3 - 5 6 7            NB. example 1
_4 _4 _4
   1 2 3 (* ] -) 5 6 7      NB. example 2
_4 _4 _4

Example 0: ] has only nouns around it so
only the right argument is passed on.

Example 1: - has only nouns around it so
it processes the arguments as a dyad.

Example 2: ] has only verbs around it and
all the verbs are isolated (by parentheses)
from all the nouns, so ] is part of a
train, a fork. So here, first - is
applied dyadically to the nouns and
separately * is applied dyadically to
the same two nouns, but then the dyad
] only passes along the result of the
dyadic - operation. The parens in
example 2 are important because you will
get a very different result without them.

Do these simple examples help to show
that ] behaves slightly differently
relative to the surrounding nouns in
different contexts?

-- 

(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to