Since you'd want to have the verb as return value, you'd want to have an
adverb or conjunction. They both need operands to do a job.

I tried this with } instead of Tacify, but I guess it will just work as
well:

>    foo =: (0 :) }
>
>    0 foo
>123
>)
>(49 50 51 10{a.)}

I think this should equally work for defintions passed as string too...

Kind regards,
JP


2014-03-18 13:42 GMT+01:00 Pascal Jasmin <[email protected]>:

> from
> http://www.jsoftware.com/jwiki/PascalJasmin/Multiline%20tacit%20expressions%20with%20macros
>
>
>
> test =:  0 : 0 Tacify
> ( +/
> x % y 13 MACdef                 NB.macro that will call 13 : x % y and
> return %
> #)
> NB. blank line with comment next without comment
>
> @:>
> )
>
> produces
>
> +/ % #)@:>
>
> and is satisfactorily useful to me.  The only annoyance is having to type
> 0 : 0 Tacify before each expression.  (Tacify is adverb).  Is there anyway
> of changing '0 : 0 Tacify' to a single word expression?
> ----------------------------------------------------------------------
> 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