The reason is: the input in this case is numeric so I want the resulting
indices to be the same as the input ones. For textual input nothing changes:
<@I.'0'=($$[:,":"0)9 3$'2 a0 0 5'
++---++-+-++-+-++
||0 2||2|1||1|0||
++---++-+-++-+-++
<@I.'0'=":9 3$'2 a0 0 5'
++---++-+-++-+-++
||0 2||2|1||1|0||
++---++-+-++-+-++
May be it's not important, but in this way you change the shape of
numeric input.
=@@i
Tracy Harms schreef:
Arie,
I'm not sure what you meant by your comment. Did you mean that
<@I.'0'=($$[:,":"0)example
is the same as
<@I. 0 = example
? That's true for the example I provided, but it remains true only
when the input contains only numbers that are represented by numerals,
i.e. members of i.10
The target domain won't have that restriction.
--
Tracy
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm