Leigh J. Halliwell wrote: > 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).
Note that you've assumed simple atoms here (x and y are literal or number). If you wish similar functionality with boxed atoms, I'd recommend using the L: (level at) adverb. > 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. X func each y -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
