Possibly more effective is:
nc =: 3 : 0
alias=.(>y)~
flag=.0
try. alias =. 1$.1
flag=.1
catch.
end.
if. flag do.  4!:0 y  return. end.
4
)

Bit of a trabajo alrededor - so to speak.
The value 4 is unused according to
http://jsoftware.com/help/dictionary/dx004.htm


David


Tue Apr 17 00:48:08 HKT 2007 , Raul Miller wrote:
Here's a first approximation:

mapped=:3 :0
try.y=.$.y
0 return.
catch.
1 return.
end.
)

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

Reply via email to