Yes beautiful, another way to handle the repetition is the hook with a
fork as the left verb:

   ((fork) phrase) y


On Wed, 2011-08-10 at 07:35 +0800, [email protected]
wrote:
Date: Tue, 9 Aug 2011 16:49:41 -0400
From: Raul Miller <[email protected]>
Subject: Re: [Jprogramming] Hi, I'm new. monad on list length error
To: Programming forum <[email protected]>
Message-ID:
        <CAD2jOU_3oe7Jfmh_L4UmNM+Z8j-Fp
[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Aug 9, 2011 at 3:54 PM, Uriel Zylbermann
<[email protected]> wrote:
> (=([:+/((0=((|~)([:>:[:i.-&1)))#([:>:[:i.-&1))))
...
> 
> And note also that that >:@i.@-&1 phrase is repeated twice, maybe we
> can get rid of it?
> 
>    (([ = (0 = |~) +/@# ]) >:@i.@-&1)
> 
> Note that I have to have a [ at the beginning of the left part of this
> expression, so that |~ gets both of the arguments it needs. 

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

Reply via email to