I wrote: > mergeMask =: (&>) / (`>) } (@:,) (&<) In retrospect, given that x and y will by definition agree in type and shape, we can skip the boxing and simplify mergeMask:
mergeMask =: / (`]) } (@:,:)
x (2|[) mergeMask y
0 11 2
13 4 15
6 17 8
(2|[) mergeMask
(2 | [)/`]}@:,:
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
