I would like to output the value of "out" that corresponds to a certain value of "in" in the following association:
a = {<|"in" -> 0, "out" -> 1|>, <|"in" -> 1, "out" -> 3|>, <|
"in" -> 2, "out" -> 4|>}
So for example, I would like to lookup the minimum value of "in" (which is 0 in the above) and get out the associated value of "out" (which is 1 in the above). I can find the minimum value of "in" with:
Min[<|"in" -> #["in"]|> & /@ a]
but, since Lookup refers to the value against the key, not another value in the table, I can't work out how to output the corresponding "out" value.