title: selecting first n elements of a set
body: <p>i have a large <code>set</code> of elements to iterate over. for debugging purposes, i'd only like to iterate over the first, say, ~10. To achieve this, i've created a <code>list</code> initialised from my <code>set</code>, selected the first 10 elements via <code>[:10]</code>, and iterated over the resulting <code>list</code>. Is there a more pythonic way of doing this?</p>
  
  <pre><code>mySet = set(df.SomeUniqueId)
  myList = list(mySet)[:10]
  for i, val in enumerate(myList):
      ...
  </code></pre>