On Mon, Mar 28, 2011 at 2:15 AM, Adrian May
<[email protected]> wrote:
> io =: 0&{::
> ifio =: 0&{::
> ofio =: 1&{::
> i =: ifio@io
> o =: ofio@io

Note that using two functions where one would suffice is not
particularly efficient.

And if, when you are done, you do not have any uses for ifio and ofio,
I would eliminate them from the program.

To make that structure apparent, I would instead define these words as:

io=: 0&{::
i=: (0;0)&{::
o=: (0;1)&{::
ifio=: 0&{::
ofio=: 1&{::

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

Reply via email to