Thanks Bob,

Actually, mine is and adverb and yours is a verb!


f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[
   
   f=: 13 :
   
   4!:0 <'f'
1
   g=: 4 : '(0 ,.~ 0 ,. 0 ,~ 0 , ])^:x y'
   
   4!:0 <'g'
3
   
   
   (3 g i.3 4)-:3 g i.3 4
1
 Linda  


-----Original Message-----
From: Programming <[email protected]> On Behalf Of 
'robert therriault' via Programming
Sent: Sunday, May 5, 2019 3:45 AM
To: [email protected]
Subject: Re: [Jprogramming] ambivalent tacit verb with Self-Reference

Hi Linda,

I think that the trick is that the left operand for ^: needs to be a verb. this 
seems to work.

    f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[
   1 f i. 3 4
0 0 0  0  0 0
0 0 1  2  3 0
0 4 5  6  7 0
0 8 9 10 11 0
0 0 0  0  0 0
   g=: 4 : '(0 ,.~ 0 ,. 0 ,~ 0 , ])^:x y'
   1 g i. 3 4
0 0 0  0  0 0
0 0 1  2  3 0
0 4 5  6  7 0
0 8 9 10 11 0
0 0 0  0  0 0

Cheers, bob

> On May 5, 2019, at 12:36 AM, Linda Alvord <[email protected]> wrote:
> 
> f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[

----------------------------------------------------------------------
For information about J forums see 
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7C56352514755c48052b5b08d6d12d8bb1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636926390876915345&amp;sdata=xkzvWajW4C0zbgz3XB%2FQ%2Fd4Ncdb9Umof3z%2FHnl7NB5Q%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to