Create an array of numbers from the set.

(It's necessary to use a set to prevent duplicates: http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=983, for example, includes the same link alongside "Expansion" and in the "All Sets" section.)