Here's the dialog:

A=:i.2 2
f=:<
g=:+/"1
f @ g A
f & g A
f"0 g A

f @: g A
f &: g A
f g A

(f g) A


h=: 13 :'f"0 g y'
h A
i=: 13 :'f g y'
i A
j=: 13 :'(f g)A'
j A
h
i
j

Linda

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Linda A
Alvord
Sent: Friday, December 25, 2015 7:45 AM
To: [email protected]
Subject: [Jprogramming] A result I don't understand

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

Reply via email to