Doesn't work on my machine :( and it's not quite the same as doing a naked
conditional.

Cheers,

Andrew Pennebaker
www.yellosoft.us

On Sun, Oct 30, 2011 at 4:16 PM, Raul Miller <rauldmil...@gmail.com> wrote:

> On Sun, Oct 30, 2011 at 3:40 PM, Andrew Pennebaker
> <andrew.penneba...@gmail.com> wrote:
> > J won't let me write if. ... end. by itself; it must be enclosed in a
> > function definition. E.g., I'd like to do this:
> >
> > if. happy do.
> >   clapHands
> > end.
> >
> > Rather than:
> >
> > arewehappy =: monad : 0
> >   if. happy do.
> >      clapHands
> >   end.
> > )
> >
> > arewehappy 0
> >
> > Can we add the ability to do the former to J?
>
> You can do this:
>
> monad  :0''
>  if.happy do.
>    clap hands
>  end.
> )
>
> --
> Raul
> ----------------------------------------------------------------------
> 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