I have a problem: I need to find first occurrence of any symbol from string s2 (or array of char) in string s1.
Is there standard function for this purpose? If there isn't, whats the good implementation for this problem? (Of course I can run indexOf for every char from my s2, but this does't seem like a good algorithm, because if only the last symbol occurs in s1, we must run through s1 |s2|-1 times before I get an answer).
Thank you very much!