It has to do with how the conjunction . seizes its right argument.
Bill Harris wrote: > I've learned that when I see an apparent discrepancy between the > documentation and behavior in J, the problem lies in my understanding. > > So can someone help me make sense of this? > > (9!:3) 6 > (23 & > +. 12 & <) > (23&>) +. (12&<) > > and > > gm =: # %: */ > gm > # %: (*/) > > and (from http://www.jsoftware.com/help/dictionary/dicte.htm) > > "Moreover, the left argument of an adverb or conjunction is the entire > verb phrase that precedes it. Thus, in the phrase +/ . */b , the > rightmost adverb / applies to the verb derived from the phrase +/ . * , > not to the verb * ." > > Indeed, > > +/ . */ > ((+/) .*)/ > > So why isn't my gm phrase parsed as (# %: *)/ ? > > Having to teach this to others is, as usual, helping me learn some of > the points I've ignored ... which brings up an idea: if any of us are > still in the process of learning J (I guess that's most of us, at least > at some level), would it be a good idea for us to volunteer to teach it > to others? We could get two results: better J skills and more > J'ugglers. > > Bill ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
