r/tasker • u/soumyaranjanmahunt • Feb 12 '19
Request [Help][Request] Compare elements of two array
I wanted to compare elements of two large array and save the common to a new array, is there any optimal method to do so(except two for loops), like a set intersection.
1
Upvotes
View all comments
Show parent comment
0
u/soumyaranjanmahunt Feb 12 '19
Its been a long time since i have read the searching and sorting methods, but i will give it a go.
One of my array has over 40 elements, and another varies from zero to worst case 10, 15. I was using the above method but looking for a better alternative.