How to delete duplicate elements from associative array and Queue in System Verilog

In reply to chris_le:

haha
how do I want to remove 100 different duplicated items?
copy & paste 100 times? you are talking a joke…