in q I get,

234ms

in J,

a =: i.1e7
b =: 1e6 + i.9e6
timex 'a e.b'
0.0665673


(66ms)


----- Original Message -----
From: Abi <[email protected]>
To: [email protected]
Sent: Tuesday, December 6, 2016 4:45 AM
Subject: [Jprogramming] in function which beats the benchmark

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

Reply via email to