On Mon, Oct 27, 2008 at 5:00 PM, R.E. Boss <[EMAIL PROTECTED]> wrote:
> foo=: |[EMAIL PROTECTED] (1-~ [EMAIL PROTECTED] - I.) ]
>
>   0 2 2 5 foo _5 1 2 3 9 0
> _1 0 2 2 3 0

That's basically what I would do, but I would phrase
that slightly differently:
   I=: [EMAIL PROTECTED] - 1+I.&.|.
   0 2 2 5 I _5 1 2 3 9 0
_1 0 2 2 3 0

But beware of fonts which do not allow you to distinguish
between I and | (or I. and |.).

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

Reply via email to