var/list/L = list(":P"=":D","S"="G")
L[":P"] // would return :D
//and
L["S"] // would return G
My feature request is, that if the list isn't an associative list, when you check the value like specified up ^ it would return the index, like so:
var/list/A = list("phew","phoey")
world << A["phew"] // would output 1 as 1 is the index of "phew"
var/D = "phoey" // sets D to "phoey"
world << A[D] // would output 2 as 2 is the index of "phoey"
I believe this would be a much easier way to find the index without actually calling Find() though it may be an useless and probably unwanted request, I thought I'd throw it out there to see what people think.