Is this ok?

   f=.-.~i.@>:@(>./)
   
     f 0 1 2 4 5
3
   
     f 1 3 5 7
0 2 4 6

Esa
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Collin Monahan
Sent: 17. maaliskuuta 2010 14:02
To: [email protected]
Subject: [Jprogramming] integers not found in a list

How can I define a function f such that

  f 0 1 2 4 5
3
  f 1 3 5 7
0 2 4 6

It should scale to a list of 6000 integers whose maximum element is
60000.



      
----------------------------------------------------------------------
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