Thank to Raul for help too.

I found something strange

in_foo=: 2 : 0
:
x,(>y),m,(>n)
)

foo=: 2 : '''default''&$: : (m in_foo n)"0 1 0'

   'ab'('cd' foo (<'ef'))<'gh'
abghcdef
   ('cd' foo (<'ef'))<'gh'
defaultghcdef
   > ('cd' foo (<'ef')) < 'gh'
defaultghcdef
   ('cd' foo (<'ef')) &.< 'gh'
|domain error
|   x,(>y)    ,m,(>n)

in debug windows values becomes
m n 2$'cd'
n n <2$'ef'
u n 2$'cd'
v n <2$'ef'
x n <7$'default'
y n {boxed}

      x
+-------+
|default|
+-------+
      y
+----+
|+--+|
||gh||
|+--+|
+----+

for &.< it seems x and y are boxed before passing into in_foo, why this happen
and what will be workaround?

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

Reply via email to