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

Reply via email to