On Mon, Aug 25, 2014 at 2:40 PM, 'Pascal Jasmin' via Programming
<[email protected]> wrote:
> boxscan can use any list of arguments as the x, and appends any
> shape as the y, as long x u y results in a shape "compatible with
> y" (more accurately compatible with future applications of x u
> result .

boxscan can use any list of arguments as long as they are boxed.

Assuming, of course:
boxscan=: ((&.>)/)(>@:)

To get the behavior you have describe here, I'd probably go with a
different definition. This is a bit closer:
   1 :'>@:(u&.>/)@(, <)'
... but that still assumes x has been boxed already.

So perhaps:
   1 :'>@:(u&.>/)@(<"_1^:(0=L.)@[,<@])'

Or, more simply, and closer to your description:
   1 :'>@:(u&.>/)@(<"_1@[,<@])'

Or, at least... that is how I interpret what you are explaining to me.

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to