Or you can build an array and a hash, and preserve multiple names only in the array.
Or of course you can just iterate over the array to find the names, but that's very inefficient, especially if you do it repeatedly.
In reply to Re: check if an element exists in array
by moritz
in thread check if an element exists in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |