The find function ? returns the first matching entry in a dictionary for the given value:
?
q)d:1 2 3 4!100 200 100 400 q)d 1| 100 2| 200 3| 100 4|