On Mon, 26 Jan 2009, Raul Miller wrote:
> On Mon, Jan 26, 2009 at 7:08 PM, Devon McCormick <[email protected]> wrote:
> > I'm not sure why something like this doesn't work:
> >
> > myverb=: 3 : 0
> >  a=. 'hello'
> >  b=. 3 4 2 9
> >  c=. 'big';'little';30 2
> >  nl 0
> > )
V> >
> >   (nl 0)-.myverb ''
> 
> That should work, usually, but has several limitations:
> 
> It requires modifying the verb.
> It will not display names which do not stand for nouns.
> It will not display names that shadow "global" names.

I would do it in this way:

myverb=: 3 : 0
 nounlist1=. <save nounlist here>
 a=. 'hello'
 b=. 3 4 2 9
 c=. 'big';'little';30 2
 nounlist2=. <save nounlist here>
NB. nounlist2 -. nounlist1  is the new noun introduced
)

I think that it is impossible to get a list local names without
changing the myverb. You may try 4!:5 to filter global name if needed.
How would you handle x and y?

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩297 杜牧  金谷園
    繁華事散逐香塵  流水無情草自春  日暮東風怨啼鳥  落花猶似墜樓人
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to