Search code examples
j

where is the official documentation for .Alpha_j_


David Lambert's code here gets the letters (Alphabet), using the following:

26}.Alpha_j_   NB. output is abcdefghijklmnopqrstuvwxyz

Where can I find the offical documentation for ".Alpha_j_"? I have searched NuVoc, and the closest I found is adot


Solution

  • Not really documentation, but it is defined in the stdlib.ijs file on line 1661. Found in j901/system/main/stdlib.ijs Probably the reason that you got the documentation for a. (Alphabet) from Nuvoc is because that is how it is constructed as a subset of the characters in the primitve a.

    cocurrent <'j'
    Alpha=: a. {~ , (a.i.'Aa') +/ i.26
    

    I noticed that you called it .Alpha_j_, but actually it is named Alpha and the dot comes from the }. (Drop) which is used to drop the first 26 letters which are upper case. The _j_ suffix indicates it is part of the j locale (a namespace).

       Alpha_j_
    ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz