How to list the code of a verb in J

Posted by MPelletier on Stack Overflow See other posts from Stack Overflow or by MPelletier
Published on 2012-08-29T15:11:35Z Indexed on 2012/08/29 15:38 UTC
Read the original article Hit count: 312

Filed under:

In the console, typing a single verb without parameters will print its content:

   tolower

3 : 0
x=. I. 26 > n=. ((65+i.26){a.) i. t=. ,y
($y) $ ((x{n) { (97+i.26){a.) x}t
)

That's nice for development, but unexploitable during execution. Is there a way to do that dynamically? Is there a verb that can return the contents of another verb?

For example:

showverb 'tolower'

or

showverb tolower

© Stack Overflow or respective owner

Related posts about j