I'm using the arrayjobx to store data in arrays, and I want to search through those arrays.
For example, I might have a list of names and places and I want to search through those names to find the index of a given name in that array.
\newarray\Names
\newarray\Places
\readarray{\Names}{Alice,Bob,Charles,Steve,George}
\readarray{\Places}{Alberta,Bangkok,China,Saarland,Georgia}
I want something like \findindex so that I can call the place associated to the person, e.g.
\Places(\findindex{\Names}{Bob})
should output Bangkok.
How might I do this?

arrayjobxis able to retrieve the index of an entry, without doing a loop over the whole array. Are you tied toarrayjobxor would you accept other solutions?