I was hoping you'd ask.

1 2 numerize each t
is
1 2 (numerize each) t
and
(numerize each) has rank 0, because each is &.> and that has the rank from >, i. e. 0 . So (numerize each) applies to atoms, and you have 2 atoms on the left, 3 on the right: length error.

1 2&numerize each t
is
((1 2&numerize) each) t
and ((1 2&numerize) each) again applies to atoms, but this time as a monad (so no length error possible). It opens each atom of t and then applies (1 2&numerize) which applies the dyad numerize between 1 2 and the opened contents of the atom of t.

Henry Rich


On 12/23/2013 1:17 PM, Ricardo Forno wrote:
Thanks.
t =. 1 2 & numerize each t

worked directly without changing "numerize".

However, I stil do not understand completely WHY it worked, ha ha. You
see, I am writing my first important program in J.

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

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

Reply via email to