[Jprogramming] monad/dyad

Raul Miller rauldmiller at gmail.com
Mon Mar 24 13:10:39 HKT 2008


On Mon, Mar 24, 2008 at 12:55 AM, greg heil <gheil.j at gmail.com> wrote:
> Is there any way to do explicit definitions of monad/dyads on a single
> line?

Yes.

> Neither of these work (minus defined on page monad_dyad_def.htm)
>        do each 'minus =. 3 : 0'; '- y'; colon;'x - y'; end
>        do 'minus =. 3 : 0', '- y', colon, 'x - y',: end

I probably do not understand what you are trying to accomplish.

But, does the following accomplish what you want?
   minus=: 3 :('-y';':';'x-y')

-- 
Raul


More information about the Programming mailing list