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 )
(nl 0)-.myverb '' On Mon, Jan 26, 2009 at 6:30 PM, Sherlock, Ric <[email protected]>wrote: > Is there a way to list names within an explicit verb that are local to that > verb? > > Myverb=: 3 : 0 > a=. 'hello' > b=. 3 4 2 9 > c=. 'big';'little';30 2 > NB. Expression to List names defined locally to this verb > NB. (i.e. the list: 'a';'b';'c') > Localnames=. <ListLocalNames> > pack Localnames > ) > > Given the missing expression <ListLocalNames> the verb would return > Myverb '' > +-+-----------------+ > |a|hello | > +-+-----------------+ > |b|3 4 2 9 | > +-+-----------------+ > |c|+---+------+----+| > | ||big|little|30 2|| > | |+---+------+----+| > +-+-----------------+ > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
