In the following array, I want select a sub-array from array a when an id is known
a=[['id123','ddf',1],['id456','ddf',1],['id789','ddf',1]]
I know the id i.e, id456, based on this how can I select the values ['id456','ddf',1] from a without using any loop.
without using any loop. Is this homework?a[0]should do the trick :)