How to list the code of a verb in J

后端 未结 1 1454
青春惊慌失措
青春惊慌失措 2021-01-06 02:37

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) {         


        
相关标签:
1条回答
  • 2021-01-06 03:22

    You can use its representation. For example the boxed representation (5!:2) of tolower is:

       (5!:2) <'tolower'
    ┌─┬─┬────────────────────────────────────────┐
    │3│:│x=. I. 26 > n=. ((65+i.26){a.) i. t=. ,y│
    │ │ │($y) $ ((x{n) { (97+i.26){a.) x}t       │
    └─┴─┴────────────────────────────────────────┘
    

    its linear (5!:5) is:

       (5!:5) <'tolower'
    3 : 0
    x=. I. 26 > n=. ((65+i.26){a.) i. t=. ,y
    ($y) $ ((x{n) { (97+i.26){a.) x}t
    )
    
    0 讨论(0)
提交回复
热议问题