> So why isn't my gm phrase parsed as (# %: *)/  ?

Simply, because (f g h) is not a Verb Phrase;
it is a Train (viz a Fork), which has lower "bonding" 
priority than Verb Phrase (made of Conjunctions and Adverbs).



> From: Bill Harris <[email protected]>
> 
> 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
> -- 
> Bill Harris                      http://facilitatedsystems.com/weblog/
> Facilitated Systems                              Everett, WA 98208 USA
> http://facilitatedsystems.com/                  phone: +1 425 374-1845
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to