Every verb in J is ambivalent determined by its context. If you put a noun argument for it, it becomes dyadic.
Вск, 05 Фев 2012, Linda Alvord писал(а): > I meant (to the left of) in the post below this one. > > Is g a request for a dyadic function or a monadic one? Since the results > are different, why does g have the right [: before (to the right of) two > "verbs" if [ represents a noun ? > > Linda > > -----Original Message----- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Linda Alvord > Sent: Sunday, February 05, 2012 10:33 PM > To: 'Programming forum' > Subject: Re: [Jprogramming] Another early morning exercise > > Dave Lambert mentioned to me in a post that I had made a typing error typing > x instead of y : > > i=: 13 :'*:@+/x' > i i.4 > 456976 > > So, here are two questions: > > f=: 13 :'%#y' > f > [: % # > g=: 13 :'%#x' > g > [: % [: # [ > > Is g a request for a dyadic function or a monadic one? Since the results > are different, why does g have the right [: before (to the right of) two > "verbs" if [ represents a noun ? > > I've often seen this before and wondered about it. > > Linda > -----Original Message----- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Don Guinn > Sent: Sunday, February 05, 2012 8:21 AM > To: Programming forum > Subject: Re: [Jprogramming] Another early morning exercise > > Don't you need to change the x to y? > > i=: 13 :'*:@+/y' > i i.4 > 456976 > i=: 3 :'*:@+/y' > i i.4 > 456976 > i=: 3 :'*:@+/x' > i i.4 > 676 > > On Sun, Feb 5, 2012 at 5:11 AM, Linda Alvord <lindaalv...@verizon.net>wrote: > > > My goal has been to translate from expressions with @ to ones without > it. > > > > > > > > f=: 13 :'x?@$y' > > > > 2 3 f 6 > > > > 2 4 2 > > 3 2 5 > > > > > > > > g=: 13 :'x?$y' > > > > 2 3 g 6 > > > > |length error: g > > | 2 3 g 6 > > > > > > > > h=: 13 :'?x$y' > > > > 2 3 h 6 > > > > 4 3 1 > > 5 0 1 > > > > > > > > f > > > > ?@$ > > > > h > > > > [: ? $ > > > > > > > > Can you rewrite this without @ ? > > > > > > > > i=: 13 :'*:@+/x' > > > > i i.4 > > > > 456976 > > > > > > > > > > > > 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 > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm