key value pairs?

I have a list of key, values
what’s the best way to get the key given a the value?

Sorry, misread your post.

Either use two dictionaries with key,value and value,key (tricky if you have duplicate values) or iterate the keys one at a time using$Keys this wont go through the keys in the order they were added but will go through them all. With$Key you can iterate them in order.

Isn’t/wasn’t there a map object?