On Wed, Sep 24, 2008 at 11:04 AM, Jose Mario Quintana
<[EMAIL PROTECTED]> wrote:
> That is really neat!  If you still want to include the edge...
>
>     3(<.+i.@(+ *)@-~)7
> 3 4 5 6 7
>
>     7(<.+i.@(+ *)@-~)3
> 7 6 5 4 3

But remember that (+ *) does not do the right thing for a difference
of 0 (where to
get the edge you want a result of 1).

You could instead use (+ *@(0.5&+)@-~ but I prefer -~ + _1 ^ <

FYI,

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

Reply via email to