[Jprogramming] 2-verb "Forking"
David Vaughan
purpleblues13 at gmail.com
Sun Aug 19 17:47:13 UTC 2012
If the verb train has an even number of verbs in it, then it is called a hook.
(f g) y <=> y f g y NB. monadic hook
x (f g) y <=> x f g y NB. dyadic hook
See http://www.jsoftware.com/help/dictionary/dictf.htm
Also, a hook can always (I believe) be turned into a fork by adding the [ verb to the left of the train (has to be [ and not ] because of the dyadic case):
([ f g) y <=> (f g) y
The situation is similar for the dyadic case.
___________________________
David Vaughan
On 19 Aug 2012, at 18:21, Owen Marschall <omarschall15 at amherst.edu> wrote:
> Hey all, J beginner here. In the first circuit lab, I encountered the verb (-|.)"1, and in trying to figure out its meaning, I discovered that (-|.) noun is different from -|. noun. I'm familiar with forking, but this only involves two verbs. Can someone explain this to me?
>
> Thanks,
> Owen
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list