I don't think there's anythin in the collection ap...
# getting-started
k
I don't think there's anythin in the collection apis that operates on reference equality.
d
A huge thanks for your reply! Jep, must be referencial for this case
b
Copy code
list1.filter { l1 -> list2.any{l1 === it} }
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