> 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