I don't understand how 

    (f g) A
1 0
1 1

Where are the verbs f and g when you display the definition of I ?

Linda

What is it doing to make this result?

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Friday, December 25, 2015 9:23 AM
To: Programming forum
Subject: Re: [Jprogramming] A result I don't understand

I do not understand your question.

Are you asking why a hook is different from some other form of composition?

Thanks,

-- 
Raul


On Fri, Dec 25, 2015 at 7:45 AM, Linda A Alvord <[email protected]> wrote:
> Extending an example on composition from Sykes's LJ,  I made the final step.
> What's happening here?
>
>
>
>    A=:i.2 2
>
>    f=:<
>
>    g=:+/"1
>
>    f @ g A
>
> --T-┐
> │1│5│
> L-+--
>
>    f & g A
>
> --T-┐
> │1│5│
> L-+--
>
>    f"0 g A
>
> --T-┐
> │1│5│
> L-+--
>
>
>
>    f @: g A
>
> ----┐
> │1 5│
> L----
>
>    f &: g A
>
> ----┐
> │1 5│
> L----
>
>    f g A
>
> ----┐
> │1 5│
> L----
>
>
>
>    (f g) A
>
> 1 0
> 1 1
>
>
>
>
>
>    h=: 13 :'f"0 g y'
>
>    h A
>
> --T-┐
> │1│5│
> L-+--
>
>    i=: 13 :'f g y'
>
>    i A
>
> ----┐
> │1 5│
> L----
>
>    j=: 13 :'(f g)A'
>
>    j A
>
> 1 0
> 1 1
>
>
>
> Linda
>
> ----------------------------------------------------------------------
> 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

Reply via email to