Here's a variant on match which returns
zero when empties have incompatible
types:

   matchE=: -: *. -:&(0...@#,)

   0 matchE 0
1
   0 matchE i.0
0
   '' matchE i.0
0

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

Reply via email to