Hacker News new | ask | show | jobs
by dllthomas 4365 days ago
If you know that all the elements in the loop are already in the array then traversing it is easy. Of course, if you have an upper bound for the length of the list, there's an easier check...