6!:2 '(i. 10000000) i. (1000000 + i. 9000000)'
0.121106

this is i3-3120M at 2.5 GHz (2012, Ivy Bridge architecture).

Henry Rich

On 12/6/2016 3:44 PM, 'Pascal Jasmin' via Programming wrote:
the in function in q is e. in J.




----- Original Message -----
From: Björn Helgason <[email protected]>
To: Programming forum <[email protected]>
Sent: Tuesday, December 6, 2016 3:41 PM
Subject: Re: [Jprogramming] in function which beats the benchmark

in =. [: I. E.

        1 3 in 4 2 1 3 4 6 1  3
2 6



On 6 Dec 2016 09:46, "Abi" <[email protected]> wrote:

Hi,
I am new to J. Can someone implement the *in* function.
I have tried various ways but cannot get to beat the benchmark of ~130 ms.

list1: 0 til 10MM
list2 : 1M till 10MM

list2 *in* list1

The line above shows the in operator.

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

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
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