I would like to have the possibilty to search an array for a given value and get the index returned instead of only true or false.
E.g. I had a case in which I had one array with codes and a second array with corresponding descriptions. I had to search the first array on a certain value and get the desciption out of the second array having the same index. To do the search I had to use a while do loop. It would be great if there was an out-of-the-box function for it.
Please sign in to leave a comment.