Thank you, Randy. I was stuck on the u^:n page and hadn't gone back to
vocabulary.

Regards

Graham

-----Original Message-----
Date: Mon, 9 Apr 2007 11:13:40 -0300
From: "ramacd" <[EMAIL PROTECTED]>
Subject: Re: [Jprogramming] Re: Singleton Reduction
To: "Programming forum" <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="iso-8859-1"

Graham;

The dictionary has an explanation for u^:v , Does that help you at all?

My local J help has that page at:

.\system\extras\help\dictionary\d202v.htm

>: ...
------------------------------------------------------------------------
|\/| Randy A MacDonald   | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED]  |
|\ |                     | The only real problem with APL is that
BSc(Math) UNBF'83        | it is "still ahead of its time."
Sapere Aude              |     - Morten Kromberg
Natural Born APL'er      | Demo website: http://156.34.64.78/
-----------------------------------------------------(INTP)----{ gnat }-

----- Original Message ----- 
From: "Graham Parkhouse" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 09, 2007 10:19 AM
Subject: [Jprogramming] Re: Singleton Reduction


> > Date: Sat, 07 Apr 2007 10:25:13 -0700
> > From: Roger Hui <[EMAIL PROTECTED]>
> > Subject: Re: [Jprogramming] Singleton Reduction
> > To: Programming forum <[email protected]>
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset=us-ascii
> > 
> >    f=: {.^:(1=#)
> >    f 'abc'
> > abc
> >    $ f 'a'
> > 
> >    $ f ,'a'
> > 
> > f^:proprosition y is equivalent to
> > if. proposition y do. f y else. y end.
> 
> It explains this in Learning J, but I can't see it in the dictionary.
> 
> Regards
> 
> Graham Parkhouse


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to