I am not sure I understand right:

   <1 2 3  NB. "boxed vector of atoms"
+-----+
|1 2 3|
+-----+

Otherwise, if you have atoms to make a list,
they don't need to be additionally boxed.

   1,2,3     NB. list of atoms
1 2 3
   a:,a:,a:  NB. also list of atoms
++++
||||
++++


   ]X=: (1 2;3 4)  NB. list of two boxed atoms
+---+---+
|1 2|3 4|
+---+---+
   ]y=: <5 6       NB. a (scalar) boxed atom
+---+
|5 6|
+---+
   X + each  y
+-----+-----+
|11 14|13 16|
+-----+-----+


--- "Leigh J. Halliwell" <[EMAIL PROTECTED]> wrote:

> Dear J Forum:
> Let func be a dyadic function defined for atoms x and y.  If Y is a boxed
> vector of atoms, 'x func each Y' will do the function between x and each
> atom of Y (i.e., one with many).  And if X is a boxed vector of as many
> atoms, 'X func Y' will do the function between corresponding atoms of X and
> Y (i.e., many with many).  But how can I do the many-to-one case, 'X func
> y'?  The adverb "each" doesn't like the left argument.
> Sincerely,
> Leigh



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to