Hello everyone
What I was trying to do was adding the same adverb to every verb in a gerund:
v1=:+
v2=:*
v3=:-
g1=:v1`v2`v3
insert=:verb define
v=.y`:6
v2=.v/
{.(v2 f.)`''
)
insert"0 g1
+-------+--------+-------+
|+-+---+|+-+----+|+-+---+|
||/|+-+|||/|+--+|||/|+-+||
|| ||+|||| ||v2|||| ||-|||
|| |+-+||| |+--+||| |+-+||
|+-+---+|+-+----+|+-+---+|
+-------+--------+-------+
Accidentally, there was the same name used in the code. v2 was used as
public and private. As far as I know, they don't collide each other
and you don't need to worry about private names polluting the public
namepsace and that's why private assignment exists.
However, as you see from the result, the middle element is different
from the others. Why not */, instead of v2/ ? Why did it happen?
June
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm