Neat! I would have been surprised if a simpler solution had not existed.

Esa

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: 17. maaliskuuta 2010 14:37
To: Programming forum
Subject: Re: [Jprogramming] integers not found in a list

On Wed, Mar 17, 2010 at 8:13 AM, Lippu Esa <[email protected]> wrote:
> Is this ok?
>
>   f=.-.~i.@>:@(>./)

You do not need that >: because
the element it adds to the list
will always be removed from the
result.

Thus:
   f=: -.~ i.@(>./)

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

Reply via email to