in reply to check if an element exists in array
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.
|
|---|