%seen will also have the number of occurrences of every element of @a.
In reply to Re^2: Explain the code by olus in thread Explain the code by rose