Why do you want to do this thing? Very likely we can make better suggestions if you give us the bigger picture of what you are trying to achieve.
Note that "efficient" probably isn't the same as "fast". Note too that nested loops most often imply O(n2). Using a hash can turn that back into O(n).
In reply to Re^2: Exact string matching
by GrandFather
in thread Exact string matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |