Terrence Brannon wrote:
> I tried to move the "]" inside the parenthesis,
Will this suffice?
c =: '(' , [ , ] , ')'"_
'a' c 'b' c 'c'
(a(bc))
> At first I thought this was because I was
> supplying "," with a verb argument
Verbs only take nouns as arguments. There is absolutely no way to supply verbs
with verb arguments. If a verb's neighbors are not nouns, it cannot even see
them.
If a verb is surrounded by verbs, it's not being supplied with arguments. No
verb will be invoked; instead a new one will be created: a fork.
In any case, I suggest you stick with explicit code for the nonce; it better
matches your expectations:
C =: dyad def ' ''('' , x , y , '')'' '
'a' C 'b' C 'c'
(a(bc))
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm