Is it possible to use find_index() functions to match nested queues?

In reply to dave_59:

Hi Sir,
This code could have also been written in the following way, I guess :


match_q = bad_idea_q.find_index with ( addr1 inside {subq1[item]} && addr2 inside {subq2[item]});

subq1 and subq2 - both of them are 2D queues. bad_idea_q is the queue with the positions/row numbers of those 2D queues.
Now, when I am writing item.subq1 along with the “with” clause, it will go to that row number and search whether addr1 is present in that row. I believe subq1[item] will do the exact thing.