Björn Helgason wrote: > > I am trying to understand gerund and tie > > mean=.sum div count > 'sum div count'=.+/`%`# > [...] > What's really curious about this is that verbs are represented in prefix notation:
sum ┌─┬───┐ │/│┌─┐│ │ ││+││ │ │└─┘│ └─┴───┘ 'F G' =: [EMAIL PROTECTED]@h/ ` f F ┌─┬───────────────────┐ │/│┌─────────────────┐│ │ ││┌─┬─────────────┐││ │ [EMAIL PROTECTED] │ │││ ││┌─┬─────┐│h││││ │ │││ [EMAIL PROTECTED] ││││ │ │││ │││ ││f│g│││ ││││ │ │││ │││ │└─┴─┘││ ││││ │ │││ ││└─┴─────┘│ ││││ │ │││ │└─────────┴─┘│││ │ ││└─┴─────────────┘││ │ │└─────────────────┘│ └─┴───────────────────┘ This is easily represented as the following LISP's S-expression: (/ . (((@ . (@ . (f . g))) . h).()))) === (/ ((@ @ f . g) . h)) adverbs and conjunctions appear at first positions of subexpressions, while in the case of trains at the first position is the length of the bident or trident only, again in the prefix notation: 'F G' =: (f g h a h a)`f F is then (2.(f .(3 . (g . h . (3 . a . h . a))))) Further reading of http://www.jsoftware.com/help/dictionary/d610.htm refers to: Bernecky, Robert, and R.K.W. Hui, Gerunds and Representations, APL91, ACM. but I couldn't find the article. -- View this message in context: http://www.nabble.com/Gerund-tp20524374s24193p20533072.html Sent from the J General mailing list archive at Nabble.com. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
