So, if you look at all the "type 3" names - which are verbs - by entering names 3 you'll see all the ones defined as in your example.
"names 0" shows you all the "type 0" names - which are nouns - defined in the current namespace. Nouns can be defined using the "0 : 0" syntax or more simply for simpler ones, e.g. DIGITS=: '0123456789' SUIT=: 0 : 0 club diamond heart spade ) As others have mentioned, types 1 and 2 are for adverbs and conjunctions. One apparent inconsistency in this relation between "n : 0" for definition and "names n" for listing names of a type is that when you define a (strictly) dyadic verb like this: takeRandLarg=: 4 : 0 x ,&.>/ y ) it shows up with all the other verbs in response to "names 3" - there is no "names 4". On Sun, May 20, 2012 at 7:09 PM, jake wilson <jakewilso...@gmail.com> wrote: > when defining a verb, the J Primer says to write this: > > centigrade =. 3 : 0 >> >> what is the 3 for there? I assumed it was because following that > statement, the primer says to define three variables, t1, t2, and t3, but > then on the next page it uses the same definition, but only defines one > variable. Also, what is the zero for? > > Thanks, > -Jake > ---------------------------------------------------------------------- > 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