[Jprogramming] ambivalent tacit verb with Self-Reference
Linda Alvord
lindaalvord36 at outlook.com
Sun May 5 19:37:06 UTC 2019
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 <programming-bounces at forums.jsoftware.com> On Behalf Of 'robert therriault' via Programming
Sent: Sunday, May 5, 2019 3:45 AM
To: programming at jsoftware.com
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 <lindaalvord36 at outlook.com> wrote:
>
> f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[
----------------------------------------------------------------------
For information about J forums see https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffd.xuwubk.eu.org%3A443%2Fhttp%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C56352514755c48052b5b08d6d12d8bb1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636926390876915345&sdata=xkzvWajW4C0zbgz3XB%2FQ%2Fd4Ncdb9Umof3z%2FHnl7NB5Q%3D&reserved=0
More information about the Programming
mailing list