Join Slack
Powered by
I don't think there's anythin in the collection ap...
# getting-started
k
karelpeeters
04/15/2018, 1:41 PM
I don't think there's anythin in the collection apis that operates on
reference
equality.
d
Daniel
04/15/2018, 1:44 PM
A huge thanks for your reply! Jep, must be referencial for this case
b
brichards
04/16/2018, 5:03 PM
Copy code
list1.filter { l1 -> list2.any{l1 === it} }
brichards
04/16/2018, 5:43 PM
but this is an N^2 search would be better if you could some how make the search space in l2 smaller with each iteration
4
Views
Open in Slack
Previous
Next