[Jprogramming] 2-verb "Forking"
Raul Miller
rauldmiller at gmail.com
Sun Aug 19 19:15:42 UTC 2012
In case no one has posted this already, to get both the monadic and
dyadic definitions of a hook (f g), you use: ([ f g@])
--
Raul
On Sun, Aug 19, 2012 at 2:16 PM, Henry Rich <HenryHRich at nc.rr.com> wrote:
> ([ f g) y <=> (f g) y
>
> Yes.
>
> But not for the dyadic case:
>
> x ([ f g) y <=> x f x g y
>
> but
>
>
> x (f g) y <=> x f g y
>
>
> Henry Rich
>
>
>
> On 8/19/2012 1:47 PM, David Vaughan wrote:
>>
>> 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
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list