I have an array A containing n arrays. Each of the n arrays, contains two element. The first is an id, while the second is an object. For more details, see the following example:
A = [ [100, object1], [22, object2], [300, object3]]
For a given id, I want to get the associated object. Example, for id = 22, I want to get object2.