On Sun, Oct 30, 2011 at 3:40 PM, Andrew Pennebaker
<[email protected]> 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