I saw a couple different threads hear touching on the issue of
different things that look the same.

One issue is data with leading 1 dimensions.  These could be eliminated:

eliminateLeading1Dimensions=:   ,/^:(1=#)^:_

or

eL1D=: , $~ $ #~ 1  >./\@:~: $

   $ eL1D i. 1 1 2 3
2 3

We could also format the data before testing it:

looksSame=: -:&":&eL1D

   (i. 1 1 2 3) looksSame ": i.2 3
1

For people that have encountered this issue, do any of these
variations seem like they could work for you?

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

Reply via email to