On Sat, Jul 25, 2009 at 6:38 AM, neville holmes<[email protected]> wrote:
> Having a third, and even a fourth, argument need not
> be difficult and would certainly be useful, especially
> (in my direct experience) in teaching beginners tacit
> programming.
>
> At the risk of boring long-term readers of this forum,
> my repeated suggestion has been for the use of [. and
> ]. to bring in operands just as [ and ] bring in
> arguments. Then with &[. [.& &]. or ].& you would
> effectively have third and fourth arguments.  There
> would be many other simplifications then made available
> as well.

Perhaps:
   0&{::
   1&{::
   2&{::
   3&{::

This gives you four arguments.  And, for some domains,
you can use n&{ instead of n&{::

I can not think of an expression off the top of my head which
would use four arguments, hopefully their use is obvious?

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to