:) Thanks Oleg. I don't know why but its stuck in my brains that the
only way to use ~ is the "Passive" way. Of course, you can guess that
that's the only way I actually used it. So it's surprising for me to see
it used monadically.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Oleg Kobchenko
Sent: Friday, September 19, 2008 1:30 PM
To: Programming forum
Subject: Re: [Jprogramming] Verb Sequence or Ranking problem?

Remember, primitives can be monadic and dyadic.
The action you describe of flipping arguments is
for the dyadic tilde, called "Passive", as in
  Wolf ate sheep / Sheep eaten by wolf

It is the monadic case that is called "Reflexive",
as you bring an object to a mirror its double appears
reflecting on the other side.


More at Dictionary entry for (~).
  http://www.jsoftware.com/help/dictionary/d220v.htm



----- Original Message ----
> From: Alex Rufon <[EMAIL PROTECTED]>
> To: Programming forum <[email protected]>
> Sent: Friday, September 19, 2008 1:27:52 AM
> Subject: RE: [Jprogramming] Verb Sequence or Ranking problem?
> 
> Oh.
> 
> I know about the reflexive primitive. But I always thought that you
> always need both left and right parameters to switch. This confused me
> because what I understood was that the code was to be run as:
>    a #/.
> |syntax error
> |       a#/.
> 
> So basically, this is a shortcut/trick where the noun is used as both
> left and right parameters. Hmmmm.
> 
> Thanks Rick. I appreciate it.
> 
> r/Alex
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric
> Sent: Friday, September 19, 2008 12:45 PM
> To: Programming forum
> Subject: RE: [Jprogramming] Verb Sequence or Ranking problem?
> 
> ---Alex Rufon wrote:
> > Can anybody elaborate on #/.~a
> >
> > I don't understand the presence of ~ in that sequence. Is this
another
> > example of a fork/hook?
> 
> This is not a tacit expression so it isn't a fork or hook.
> See the dictionary page for Reflexive:
> http://www.jsoftware.com/help/dictionary/d220v.htm
> 
>    #/.~ a
> 2 2 1 3
>    a #/. a
> 2 2 1 3
> ----------------------------------------------------------------------
> 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

Reply via email to